|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttom.engine.adt.tomdeclaration.TomDeclarationAbstractType
tom.engine.adt.tomdeclaration.types.Declaration
tom.engine.adt.tomdeclaration.types.declaration.MakeDecl
public final class MakeDecl
| Field Summary |
|---|
| Fields inherited from class tom.engine.adt.tomdeclaration.types.Declaration |
|---|
idConv |
| Fields inherited from class tom.engine.adt.tomdeclaration.TomDeclarationAbstractType |
|---|
atermFactory, factory |
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares two terms. |
int |
compareToLPO(Object o)
Compares two terms. |
shared.SharedObject |
duplicate()
Copy the object and returns the copy |
boolean |
equivalent(shared.SharedObject obj)
Checks if a SharedObject is equivalent to the current object |
static Declaration |
fromTerm(aterm.ATerm trm,
ATermConverter atConv)
Apply a conversion on the ATerm contained in the String and returns a tom.engine.adt.tomdeclaration.types.Declaration from it |
BQTermList |
getArgs()
Returns the attribute tom.engine.adt.code.types.BQTermList |
TomName |
getAstName()
Returns the attribute tom.engine.adt.tomname.types.TomName |
TomType |
getAstType()
Returns the attribute tom.engine.adt.tomtype.types.TomType |
Visitable |
getChildAt(int index)
Returns the child at the specified index |
int |
getChildCount()
Returns the number of childs of the term |
Visitable[] |
getChildren()
Returns the whole children of the term |
Instruction |
getInstr()
Returns the attribute tom.engine.adt.tominstruction.types.Instruction |
Option |
getOrgTrack()
Returns the attribute tom.engine.adt.tomoption.types.Option |
int |
hashCode()
Returns hashCode |
protected int |
hashFunction()
Compute a hashcode for this term. |
boolean |
isMakeDecl()
Returns true if the term is rooted by the symbol MakeDecl |
static MakeDecl |
make(TomName _AstName,
TomType _AstType,
BQTermList _Args,
Instruction _Instr,
Option _OrgTrack)
Constructor that builds a term rooted by MakeDecl |
Declaration |
setArgs(BQTermList set_arg)
Sets and returns the attribute tom.engine.adt.tomdeclaration.types.Declaration |
Declaration |
setAstName(TomName set_arg)
Sets and returns the attribute tom.engine.adt.tomdeclaration.types.Declaration |
Declaration |
setAstType(TomType set_arg)
Sets and returns the attribute tom.engine.adt.tomdeclaration.types.Declaration |
Visitable |
setChildAt(int index,
Visitable v)
Set the child at the specified index |
Visitable |
setChildren(Visitable[] childs)
Set children to the term |
Declaration |
setInstr(Instruction set_arg)
Sets and returns the attribute tom.engine.adt.tomdeclaration.types.Declaration |
Declaration |
setOrgTrack(Option set_arg)
Sets and returns the attribute tom.engine.adt.tomdeclaration.types.Declaration |
String |
symbolName()
Returns the name of the symbol |
aterm.ATerm |
toATerm()
Returns an ATerm representation of this term. |
void |
toStringBuilder(StringBuilder buffer)
Appends a string representation of this term to the buffer given as argument. |
| Methods inherited from class tom.engine.adt.tomdeclaration.TomDeclarationAbstractType |
|---|
convertATermToBoolean, convertATermToChar, convertATermToDouble, convertATermToFloat, convertATermToInt, convertATermToLong, convertATermToString, getUniqueIdentifier, setUniqueIdentifier, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static MakeDecl make(TomName _AstName,
TomType _AstType,
BQTermList _Args,
Instruction _Instr,
Option _OrgTrack)
public String symbolName()
symbolName in class TomDeclarationAbstractTypepublic shared.SharedObject duplicate()
duplicate in interface shared.SharedObjectpublic void toStringBuilder(StringBuilder buffer)
toStringBuilder in class TomDeclarationAbstractTypebuffer - the buffer to which a string represention of this term is appended.public int compareToLPO(Object o)
compareToLPO in class TomDeclarationAbstractTypeo - object to which this term is compared
ClassCastException - in case of invalid arguments
RuntimeException - if unable to compare childspublic int compareTo(Object o)
compareTo in interface ComparablecompareTo in class TomDeclarationAbstractTypeo - object to which this term is compared
ClassCastException - in case of invalid arguments
RuntimeException - if unable to compare childspublic final int hashCode()
hashCode in interface shared.SharedObjecthashCode in class Objectpublic final boolean equivalent(shared.SharedObject obj)
equivalent in interface shared.SharedObjectobj - SharedObject to test
public boolean isMakeDecl()
isMakeDecl in class Declarationpublic TomName getAstName()
getAstName in class Declarationpublic Declaration setAstName(TomName set_arg)
setAstName in class Declarationset_arg - the argument to set
public TomType getAstType()
getAstType in class Declarationpublic Declaration setAstType(TomType set_arg)
setAstType in class Declarationset_arg - the argument to set
public BQTermList getArgs()
getArgs in class Declarationpublic Declaration setArgs(BQTermList set_arg)
setArgs in class Declarationset_arg - the argument to set
public Instruction getInstr()
getInstr in class Declarationpublic Declaration setInstr(Instruction set_arg)
setInstr in class Declarationset_arg - the argument to set
public Option getOrgTrack()
getOrgTrack in class Declarationpublic Declaration setOrgTrack(Option set_arg)
setOrgTrack in class Declarationset_arg - the argument to set
public aterm.ATerm toATerm()
toATerm in class Declaration
public static Declaration fromTerm(aterm.ATerm trm,
ATermConverter atConv)
trm - ATerm to convert into a Gom termatConv - ATerm Converter used to convert the ATerm
public int getChildCount()
getChildCount in interface Visitablepublic Visitable getChildAt(int index)
getChildAt in interface Visitableindex - index of the child to return; must be
nonnegative and less than the childCount
IndexOutOfBoundsException - if the index out of range
public Visitable setChildAt(int index,
Visitable v)
setChildAt in interface Visitableindex - index of the child to set; must be
nonnegative and less than the childCountv - child to set at the specified index
IndexOutOfBoundsException - if the index out of rangepublic Visitable setChildren(Visitable[] childs)
setChildren in interface Visitablechilds - array of children to set
IndexOutOfBoundsException - if length of "childs" is different than 5public Visitable[] getChildren()
getChildren in interface Visitableprotected int hashFunction()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||