Class CliAbstractSig
- java.lang.Object
-
- ghidra.app.util.bin.format.pe.cli.blobs.CliBlob
-
- ghidra.app.util.bin.format.pe.cli.blobs.CliAbstractSig
-
- All Implemented Interfaces:
CliRepresentable,StructConverter
- Direct Known Subclasses:
CliSigField,CliSigLocalVar,CliSigMethodDef,CliSigMethodRef,CliSigMethodSpec,CliSigProperty,CliSigStandAloneMethod,CliSigTypeSpec
public abstract class CliAbstractSig extends CliBlob implements CliRepresentable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCliAbstractSig.CliArrayShapestatic classCliAbstractSig.CliConstraintclassCliAbstractSig.CliCustomAttribstatic classCliAbstractSig.CliCustomModclassCliAbstractSig.CliElemstatic classCliAbstractSig.CliElementTypeclassCliAbstractSig.CliFixedArgclassCliAbstractSig.CliNamedArgclassCliAbstractSig.CliParamclassCliAbstractSig.CliRetTypeclassCliAbstractSig.CliSigTypeclassCliAbstractSig.CliTypeArrayclassCliAbstractSig.CliTypeBaseclassCliAbstractSig.CliTypeClassstatic classCliAbstractSig.CliTypeCodeDataTypeclassCliAbstractSig.CliTypeFnPtrclassCliAbstractSig.CliTypeGenericInstclassCliAbstractSig.CliTypePrimitiveclassCliAbstractSig.CliTypePtrclassCliAbstractSig.CliTypeSzArrayclassCliAbstractSig.CliTypeValueTypeclassCliAbstractSig.CliTypeVarOrMvar
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPATH-
Fields inherited from class ghidra.app.util.bin.format.pe.cli.blobs.CliBlob
blobOffset, contentsOffset, contentsSize
-
-
Constructor Summary
Constructors Constructor Description CliAbstractSig(CliBlob blob)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static DataTypeconvertTypeCodeToDataType(CliAbstractSig.CliElementType typeCode)abstract java.lang.StringgetContentsComment()Gets the comment associated with this blob's contents.abstract DataTypegetContentsDataType()Gets the data type associated with this blob's contents.abstract java.lang.StringgetContentsName()Gets the name associated with this blob's contents.java.lang.StringgetRepresentation()Gets the string representation of this blob.java.lang.StringgetRepresentation(CliStreamMetadata stream)protected abstract java.lang.StringgetRepresentationCommon(CliStreamMetadata stream, boolean isShort)This is the method that subclasses should override.protected java.lang.StringgetRepresentationOf(CliRepresentable obj, CliStreamMetadata stream, boolean isShort)java.lang.StringgetShortRepresentation()java.lang.StringgetShortRepresentation(CliStreamMetadata stream)CliAbstractSig.CliSigTypereadCliType(BinaryReader reader)-
Methods inherited from class ghidra.app.util.bin.format.pe.cli.blobs.CliBlob
decodeCompressedSigned, decodeCompressedSigned, decodeCompressedSigned, decodeCompressedSignedInt, decodeCompressedUnsigned, decodeCompressedUnsigned, decodeCompressedUnsigned, decodeCompressedUnsignedInt, getContents, getContentsReader, getContentsSize, getDataTypeForBytes, getName, getSize, getSizeDataType, getStreamIndex, isLittleEndian, testSizeDecoding, toDataType
-
-
-
-
Field Detail
-
PATH
public static final java.lang.String PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CliAbstractSig
public CliAbstractSig(CliBlob blob)
-
-
Method Detail
-
getContentsDataType
public abstract DataType getContentsDataType()
Description copied from class:CliBlobGets the data type associated with this blob's contents.- Overrides:
getContentsDataTypein classCliBlob- Returns:
- The data type associated with this blob's contents.
-
getContentsName
public abstract java.lang.String getContentsName()
Description copied from class:CliBlobGets the name associated with this blob's contents.- Overrides:
getContentsNamein classCliBlob- Returns:
- The name associated with this blob's contents.
-
getContentsComment
public abstract java.lang.String getContentsComment()
Description copied from class:CliBlobGets the comment associated with this blob's contents.- Overrides:
getContentsCommentin classCliBlob- Returns:
- The comment associated with this blob's contents.
-
getRepresentationCommon
protected abstract java.lang.String getRepresentationCommon(CliStreamMetadata stream, boolean isShort)
This is the method that subclasses should override. If stream is null, the method must not cause a NullPointerException, i.e. it must handle this as if there was no stream to begin with.
-
getRepresentation
public final java.lang.String getRepresentation()
Description copied from class:CliBlobGets the string representation of this blob.- Specified by:
getRepresentationin interfaceCliRepresentable- Overrides:
getRepresentationin classCliBlob- Returns:
- The string representation of this blob.
-
getShortRepresentation
public final java.lang.String getShortRepresentation()
- Specified by:
getShortRepresentationin interfaceCliRepresentable
-
getRepresentation
public final java.lang.String getRepresentation(CliStreamMetadata stream)
- Specified by:
getRepresentationin interfaceCliRepresentable
-
getShortRepresentation
public final java.lang.String getShortRepresentation(CliStreamMetadata stream)
- Specified by:
getShortRepresentationin interfaceCliRepresentable
-
getRepresentationOf
protected java.lang.String getRepresentationOf(CliRepresentable obj, CliStreamMetadata stream, boolean isShort)
-
convertTypeCodeToDataType
public static DataType convertTypeCodeToDataType(CliAbstractSig.CliElementType typeCode)
-
readCliType
public CliAbstractSig.CliSigType readCliType(BinaryReader reader) throws java.io.IOException, InvalidInputException
- Throws:
java.io.IOExceptionInvalidInputException
-
-