Package ghidra.program.util.string
Class FoundString
- java.lang.Object
-
- ghidra.program.util.string.FoundString
-
- All Implemented Interfaces:
java.lang.Comparable<FoundString>
public class FoundString extends java.lang.Object implements java.lang.Comparable<FoundString>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FoundString.DefinedState
-
Constructor Summary
Constructors Constructor Description FoundString(Address address, int length, DataType stringDataType)
FoundString(Address address, int length, DataType stringDataType, FoundString.DefinedState definedState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FoundString other)
boolean
conflicts()
boolean
equals(java.lang.Object obj)
Address
getAddress()
StringDataInstance
getDataInstance(Memory memory)
DataType
getDataType()
FoundString.DefinedState
getDefinedState()
Address
getEndAddress()
int
getLength()
java.lang.String
getString(Memory memory)
int
getStringLength(Memory mem)
int
hashCode()
boolean
isDefined()
boolean
isPartiallyDefined()
boolean
isPascall()
boolean
isUndefined()
void
setAddress(Address address)
void
setDefinedState(FoundString.DefinedState newState)
void
setLength(int length)
java.lang.String
toString()
-
-
-
Constructor Detail
-
FoundString
public FoundString(Address address, int length, DataType stringDataType, FoundString.DefinedState definedState)
-
-
Method Detail
-
getLength
public int getLength()
-
getAddress
public Address getAddress()
-
getEndAddress
public Address getEndAddress()
-
isUndefined
public boolean isUndefined()
-
isDefined
public boolean isDefined()
-
isPartiallyDefined
public boolean isPartiallyDefined()
-
conflicts
public boolean conflicts()
-
getString
public java.lang.String getString(Memory memory)
-
getDataInstance
public StringDataInstance getDataInstance(Memory memory)
-
setDefinedState
public void setDefinedState(FoundString.DefinedState newState)
-
getDefinedState
public FoundString.DefinedState getDefinedState()
-
isPascall
public boolean isPascall()
-
getDataType
public DataType getDataType()
-
setAddress
public void setAddress(Address address)
-
setLength
public void setLength(int length)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(FoundString other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<FoundString>
-
getStringLength
public int getStringLength(Memory mem)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-