public class Field extends Object implements TypeComparator.SemanticEqualityOp
Constructor and Description |
---|
Field(String name,
Type type,
SizeThunk offset) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object arg) |
boolean |
equalSemantics(TypeComparator.SemanticEqualityOp arg)
Semantic equality test for Types exclusive its given
name . |
String |
getName()
Name of this field in the containing data structure.
|
SizeThunk |
getOffset()
SizeThunk computing offset, in bytes, of this field in the containing data structure.
|
long |
getOffset(MachineDataInfo machDesc)
Offset, in bytes, of this field in the containing data structure
given the specified MachineDataInfo.
|
Type |
getType()
Type of this field.
|
int |
hashCode() |
int |
hashCodeSemantics()
Semantic hashcode for Types exclusive its given
name . |
void |
setOffset(SizeThunk offset)
Sets the offset of this field in the containing data structure.
|
String |
toString() |
public int hashCodeSemantics()
TypeComparator.SemanticEqualityOp
name
.hashCodeSemantics
in interface TypeComparator.SemanticEqualityOp
#equalSemantics(SemanticEqualityOp)
public boolean equalSemantics(TypeComparator.SemanticEqualityOp arg)
TypeComparator.SemanticEqualityOp
name
.equalSemantics
in interface TypeComparator.SemanticEqualityOp
TypeComparator.SemanticEqualityOp.hashCodeSemantics()
public String getName()
public Type getType()
public SizeThunk getOffset()
public long getOffset(MachineDataInfo machDesc)
public void setOffset(SizeThunk offset)