Class FieldOutputInfo<T>
java.lang.Object
ghidra.app.util.bin.format.golang.structmapping.FieldOutputInfo<T>
- Type Parameters:
T-
Immutable information needed to create fields in a Ghidra structure data type, using information
from a java field.
-
Constructor Summary
ConstructorsConstructorDescriptionFieldOutputInfo(FieldMappingInfo<T> fmi, String dataTypeName, boolean isVariableLength, int ordinal, int fieldOffset) -
Method Summary
Modifier and TypeMethodDescriptiongetField()int<R> RReturns the value of this java field.booleanvoidsetOutputFuncClass(Class<? extends FieldOutputFunction> funcClass, String getterName)
-
Constructor Details
-
FieldOutputInfo
public FieldOutputInfo(FieldMappingInfo<T> fmi, String dataTypeName, boolean isVariableLength, int ordinal, int fieldOffset)
-
-
Method Details
-
getField
-
getOrdinal
public int getOrdinal() -
isVariableLength
public boolean isVariableLength() -
getOutputFunc
-
getValue
Returns the value of this java field.- Type Parameters:
R-- Parameters:
structInstance- object containing the fieldexpectedType- expected class of the value- Returns:
- value of the field
- Throws:
IOException
-
setOutputFuncClass
-