Package com.jogamp.gluegen.cgram.types
Class Field
- java.lang.Object
-
- com.jogamp.gluegen.cgram.types.Field
-
- All Implemented Interfaces:
TypeComparator.SemanticEqualityOp
public class Field extends Object implements TypeComparator.SemanticEqualityOp
Represents a field in a struct or union.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object arg)booleanequalSemantics(TypeComparator.SemanticEqualityOp arg)Semantic equality test for Types exclusive its givenname.StringgetName()Name of this field in the containing data structure.SizeThunkgetOffset()SizeThunk computing offset, in bytes, of this field in the containing data structure.longgetOffset(MachineDataInfo machDesc)Offset, in bytes, of this field in the containing data structure given the specified MachineDataInfo.TypegetType()Type of this field.inthashCode()inthashCodeSemantics()Semantic hashcode for Types exclusive its givenname.voidsetOffset(SizeThunk offset)Sets the offset of this field in the containing data structure.StringtoString()
-
-
-
Method Detail
-
hashCodeSemantics
public int hashCodeSemantics()
Description copied from interface:TypeComparator.SemanticEqualityOpSemantic hashcode for Types exclusive its givenname.- Specified by:
hashCodeSemanticsin interfaceTypeComparator.SemanticEqualityOp- See Also:
TypeComparator.SemanticEqualityOp.equalSemantics(SemanticEqualityOp)
-
equalSemantics
public boolean equalSemantics(TypeComparator.SemanticEqualityOp arg)
Description copied from interface:TypeComparator.SemanticEqualityOpSemantic equality test for Types exclusive its givenname.- Specified by:
equalSemanticsin interfaceTypeComparator.SemanticEqualityOp- See Also:
TypeComparator.SemanticEqualityOp.hashCodeSemantics()
-
getName
public String getName()
Name of this field in the containing data structure.
-
getType
public Type getType()
Type of this field.
-
getOffset
public SizeThunk getOffset()
SizeThunk computing offset, in bytes, of this field in the containing data structure.
-
getOffset
public long getOffset(MachineDataInfo machDesc)
Offset, in bytes, of this field in the containing data structure given the specified MachineDataInfo.
-
setOffset
public void setOffset(SizeThunk offset)
Sets the offset of this field in the containing data structure.
-
-