com.jogamp.gluegen.cgram.types
Class Field

java.lang.Object
  extended by com.jogamp.gluegen.cgram.types.Field

public class Field
extends Object

Represents a field in a struct or union.


Constructor Summary
Field(String name, Type type, SizeThunk offset)
           
 
Method Summary
 boolean equals(Object arg)
           
 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(MachineDescription machDesc)
          Offset, in bytes, of this field in the containing data structure given the specified MachineDescription.
 Type getType()
          Type of this field.
 int hashCode()
           
 void setOffset(SizeThunk offset)
          Sets the offset of this field in the containing data structure.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Field

public Field(String name,
             Type type,
             SizeThunk offset)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object arg)
Overrides:
equals in class Object

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(MachineDescription machDesc)
Offset, in bytes, of this field in the containing data structure given the specified MachineDescription.


setOffset

public void setOffset(SizeThunk offset)
Sets the offset of this field in the containing data structure.


toString

public String toString()
Overrides:
toString in class Object