Class LocalVariableInfo

java.lang.Object
ghidra.program.model.listing.LocalVariableImpl
ghidra.feature.vt.api.stringable.deprecated.LocalVariableInfo
All Implemented Interfaces:
ghidra.program.model.listing.LocalVariable, ghidra.program.model.listing.Variable, Comparable<ghidra.program.model.listing.Variable>

public class LocalVariableInfo extends ghidra.program.model.listing.LocalVariableImpl
  • Method Summary

    Modifier and Type
    Method
    Description
    final int
    compareTo(ghidra.program.model.listing.Variable arg0)
     
    ghidra.program.model.listing.Variable
    createLocalVariable(ghidra.program.model.listing.Function destFunction, ghidra.program.model.address.Address destinationStorageAddress)
     
    final boolean
    equals(Object arg0)
     
    final String
     
    ghidra.program.model.data.DataType
     
    final ghidra.program.model.pcode.Varnode
     
    ghidra.program.model.listing.Function
     
    final ghidra.program.model.pcode.Varnode
     
    final int
     
    final ghidra.program.model.address.Address
     
    final String
     
    final ghidra.program.model.listing.Program
     
    final ghidra.program.model.lang.Register
     
    final List<ghidra.program.model.lang.Register>
     
    final ghidra.program.model.symbol.SourceType
     
    final int
     
    final ghidra.program.model.symbol.Symbol
     
    final ghidra.program.model.listing.VariableStorage
     
    final boolean
     
    protected boolean
     
    int
     
    final boolean
     
    final boolean
     
    final boolean
    isEquivalent(ghidra.program.model.listing.Variable arg0)
     
    final boolean
     
    final boolean
     
    final boolean
     
    final boolean
     
    final boolean
     
    protected boolean
     
    void
     
    final void
    setDataType(ghidra.program.model.data.DataType arg0, boolean arg1, boolean arg2, ghidra.program.model.symbol.SourceType arg3)
     
    void
    setDataType(ghidra.program.model.data.DataType arg0, ghidra.program.model.listing.VariableStorage arg1, boolean arg2, ghidra.program.model.symbol.SourceType arg3)
     
    void
    setDataType(ghidra.program.model.data.DataType arg0, ghidra.program.model.symbol.SourceType arg1)
     
    void
    setName(String arg0, ghidra.program.model.symbol.SourceType arg1)
     
     

    Methods inherited from class ghidra.program.model.listing.LocalVariableImpl

    getFirstUseOffset, setFirstUseOffset

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface ghidra.program.model.listing.Variable

    getComment, getDataType, getFirstStorageVarnode, getFunction, getLastStorageVarnode, getLength, getMinAddress, getName, getProgram, getRegister, getRegisters, getSource, getStackOffset, getSymbol, getVariableStorage, hasAssignedStorage, hasStackStorage, isCompoundVariable, isEquivalent, isMemoryVariable, isRegisterVariable, isStackVariable, isUniqueVariable, isValid, setComment, setDataType, setDataType, setDataType, setName
  • Method Details

    • createLocalVariable

      public ghidra.program.model.listing.Variable createLocalVariable(ghidra.program.model.listing.Function destFunction, ghidra.program.model.address.Address destinationStorageAddress)
    • hasDefaultName

      protected boolean hasDefaultName()
    • isVoidAllowed

      protected boolean isVoidAllowed()
    • isValid

      public final boolean isValid()
      Specified by:
      isValid in interface ghidra.program.model.listing.Variable
    • getComment

      public final String getComment()
      Specified by:
      getComment in interface ghidra.program.model.listing.Variable
    • getDataType

      public ghidra.program.model.data.DataType getDataType()
      Specified by:
      getDataType in interface ghidra.program.model.listing.Variable
    • setDataType

      public void setDataType(ghidra.program.model.data.DataType arg0, ghidra.program.model.listing.VariableStorage arg1, boolean arg2, ghidra.program.model.symbol.SourceType arg3) throws ghidra.util.exception.InvalidInputException
      Specified by:
      setDataType in interface ghidra.program.model.listing.Variable
      Throws:
      ghidra.util.exception.InvalidInputException
    • setDataType

      public final void setDataType(ghidra.program.model.data.DataType arg0, boolean arg1, boolean arg2, ghidra.program.model.symbol.SourceType arg3) throws ghidra.util.exception.InvalidInputException
      Specified by:
      setDataType in interface ghidra.program.model.listing.Variable
      Throws:
      ghidra.util.exception.InvalidInputException
    • setDataType

      public void setDataType(ghidra.program.model.data.DataType arg0, ghidra.program.model.symbol.SourceType arg1) throws ghidra.util.exception.InvalidInputException
      Specified by:
      setDataType in interface ghidra.program.model.listing.Variable
      Throws:
      ghidra.util.exception.InvalidInputException
    • getFunction

      public ghidra.program.model.listing.Function getFunction()
      Specified by:
      getFunction in interface ghidra.program.model.listing.Variable
    • getProgram

      public final ghidra.program.model.listing.Program getProgram()
      Specified by:
      getProgram in interface ghidra.program.model.listing.Variable
    • getLength

      public final int getLength()
      Specified by:
      getLength in interface ghidra.program.model.listing.Variable
    • getName

      public final String getName()
      Specified by:
      getName in interface ghidra.program.model.listing.Variable
    • getSource

      public final ghidra.program.model.symbol.SourceType getSource()
      Specified by:
      getSource in interface ghidra.program.model.listing.Variable
    • getSymbol

      public final ghidra.program.model.symbol.Symbol getSymbol()
      Specified by:
      getSymbol in interface ghidra.program.model.listing.Variable
    • setComment

      public void setComment(String arg0)
      Specified by:
      setComment in interface ghidra.program.model.listing.Variable
    • setName

      public void setName(String arg0, ghidra.program.model.symbol.SourceType arg1) throws ghidra.util.exception.InvalidInputException
      Specified by:
      setName in interface ghidra.program.model.listing.Variable
      Throws:
      ghidra.util.exception.InvalidInputException
    • hasAssignedStorage

      public final boolean hasAssignedStorage()
      Specified by:
      hasAssignedStorage in interface ghidra.program.model.listing.Variable
    • getVariableStorage

      public final ghidra.program.model.listing.VariableStorage getVariableStorage()
      Specified by:
      getVariableStorage in interface ghidra.program.model.listing.Variable
    • getFirstStorageVarnode

      public final ghidra.program.model.pcode.Varnode getFirstStorageVarnode()
      Specified by:
      getFirstStorageVarnode in interface ghidra.program.model.listing.Variable
    • getLastStorageVarnode

      public final ghidra.program.model.pcode.Varnode getLastStorageVarnode()
      Specified by:
      getLastStorageVarnode in interface ghidra.program.model.listing.Variable
    • isStackVariable

      public final boolean isStackVariable()
      Specified by:
      isStackVariable in interface ghidra.program.model.listing.Variable
    • hasStackStorage

      public final boolean hasStackStorage()
      Specified by:
      hasStackStorage in interface ghidra.program.model.listing.Variable
    • isRegisterVariable

      public final boolean isRegisterVariable()
      Specified by:
      isRegisterVariable in interface ghidra.program.model.listing.Variable
    • getRegister

      public final ghidra.program.model.lang.Register getRegister()
      Specified by:
      getRegister in interface ghidra.program.model.listing.Variable
    • getRegisters

      public final List<ghidra.program.model.lang.Register> getRegisters()
      Specified by:
      getRegisters in interface ghidra.program.model.listing.Variable
    • getMinAddress

      public final ghidra.program.model.address.Address getMinAddress()
      Specified by:
      getMinAddress in interface ghidra.program.model.listing.Variable
    • getStackOffset

      public final int getStackOffset()
      Specified by:
      getStackOffset in interface ghidra.program.model.listing.Variable
    • isMemoryVariable

      public final boolean isMemoryVariable()
      Specified by:
      isMemoryVariable in interface ghidra.program.model.listing.Variable
    • isUniqueVariable

      public final boolean isUniqueVariable()
      Specified by:
      isUniqueVariable in interface ghidra.program.model.listing.Variable
    • isCompoundVariable

      public final boolean isCompoundVariable()
      Specified by:
      isCompoundVariable in interface ghidra.program.model.listing.Variable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public final boolean equals(Object arg0)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public final int compareTo(ghidra.program.model.listing.Variable arg0)
      Specified by:
      compareTo in interface Comparable<ghidra.program.model.listing.Variable>
    • isEquivalent

      public final boolean isEquivalent(ghidra.program.model.listing.Variable arg0)
      Specified by:
      isEquivalent in interface ghidra.program.model.listing.Variable