|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norecess.citkit.tir.types.RecordTTIR
public class RecordTTIR
The AST for a record type.
| Constructor Summary | |
|---|---|
RecordTTIR(IPosition position,
java.util.List<IFieldTIR> fields)
Constructs a record type. |
|
RecordTTIR(java.util.List<IFieldTIR> fields)
Basic constructor. |
|
| Method Summary | ||
|---|---|---|
|
accept(TypeTIRVisitor<T> visitor)
Implements the visitor pattern with TypeTIRVisitor. |
|
boolean |
equals(java.lang.Object o)
|
|
IFieldTIR |
getField(int index)
|
|
java.util.List<IFieldTIR> |
getFields()
Returns the list of fields in the record. |
|
IPosition |
getPosition()
Retrieves the position of the code that generated the AST. |
|
int |
hashCode()
|
|
java.util.Iterator<IFieldTIR> |
iterator()
|
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RecordTTIR(IPosition position,
java.util.List<IFieldTIR> fields)
position - the position of the record type in the source code.fields - a list of fields for the record type (see IFieldTIR).public RecordTTIR(java.util.List<IFieldTIR> fields)
fields - the fields and their types of the record.| Method Detail |
|---|
public IPosition getPosition()
getPosition in interface HobbesTIRpublic java.util.List<IFieldTIR> getFields()
FieldTIR
class.)
getFields in interface IRecordTTIRpublic IFieldTIR getField(int index)
getField in interface IRecordTTIRpublic <T> T accept(TypeTIRVisitor<T> visitor)
TypeTIRTypeTIRVisitor.
accept in interface TypeTIRvisitor - the visitor object.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator<IFieldTIR> iterator()
iterator in interface java.lang.Iterable<IFieldTIR>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||