|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ksu.cis.projects.bogor.type.Type
edu.ksu.cis.projects.bogor.type.NonPrimitiveType
edu.ksu.cis.projects.bogor.type.LockType
edu.ksu.cis.projects.bogor.type.RecordType
public final class RecordType
Represents a record type.
Field Summary | |
---|---|
protected BitSet |
transientFlags
A set of flags indicating whether each field (indexed by their order of appearance in the value array which would instantiate a record of this type) is elided from the state vector. |
Fields inherited from class edu.ksu.cis.projects.bogor.type.Type |
---|
hashCode, typeId |
Method Summary | |
---|---|
void |
addField(String name,
Type type,
boolean isTransient)
Adds a field. |
void |
dispose()
Removes references to id and clears fieldTable. |
boolean |
equals(Object o)
Checks whether this object is equal to another object. |
int |
getFieldCount()
Gets the number of fields. |
int |
getFieldIndex(String fieldName)
Gets the index of a field. |
String |
getFieldName(int fieldIndex)
Gets the name of a field. |
Iterator<String> |
getFieldNameIterator()
Gets field name iterator. |
Type |
getFieldType(int fieldIndex)
Gets the type of a field. |
Type |
getFieldType(String fieldName)
Gets the type of a field. |
String |
getId()
Gets the id. |
boolean |
getThrowable()
Gets the throwable. |
BitSet |
getTransientFlags()
|
boolean |
hasField(String fieldName)
Determines whether a field name is declared in the record. |
void |
makeThrowable()
Makes this record a throwable |
ASTType |
toASTType()
Get a newly constructed (unowned) syntax tree node suitable for declaring this type statically. |
String |
toString()
Returns the string representation of this object. |
String |
toVerboseString()
Returns the verbose string representation of this object. |
Methods inherited from class edu.ksu.cis.projects.bogor.type.Type |
---|
getTypeId, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected BitSet transientFlags
Method Detail |
---|
public int getFieldCount()
public int getFieldIndex(String fieldName)
fieldName
- The field name. Must be non-null. Must be a field of this
record.
public String getFieldName(int fieldIndex)
fieldIndex
- The field name. Must be non-null. Must be a field of this
record.
public Iterator<String> getFieldNameIterator()
public Type getFieldType(String fieldName)
fieldName
- The field name. Must be non-null. Must be a field of this
record.
public Type getFieldType(int fieldIndex)
fieldIndex
- The field index. Must be greater or equal to zero and less
than the the field count.
public String getId()
public boolean getThrowable()
public void addField(String name, Type type, boolean isTransient)
name
- The name of the field. Must be non-null. The record must not
already contain a field named name.type
- The type of the field. Must be non-null. Must not be instance
of VoidType or UnknownType.isTransient
- True if the declaration of the field indicates that it should
be omitted from a state vector.public void dispose()
dispose
in interface Disposable
dispose
in class LockType
public boolean equals(Object o)
equals
in class LockType
o
- Another object to check equality to.
public boolean hasField(String fieldName)
fieldName
- The field name. Must be non-null.
public void makeThrowable()
public String toString()
toString
in class LockType
public String toVerboseString()
public ASTType toASTType()
toASTType
in class LockType
null
if the type is undeclarablepublic BitSet getTransientFlags()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |