|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttom.engine.adt.tomoption.TomOptionAbstractType
tom.engine.adt.tomoption.types.Option
tom.engine.adt.tomoption.types.option.TomTermToOption
public final class TomTermToOption
| Field Summary |
|---|
| Fields inherited from class tom.engine.adt.tomoption.types.Option |
|---|
idConv |
| Fields inherited from class tom.engine.adt.tomoption.TomOptionAbstractType |
|---|
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 Option |
fromTerm(aterm.ATerm trm,
ATermConverter atConv)
Apply a conversion on the ATerm contained in the String and returns a tom.engine.adt.tomoption.types.Option from it |
TomTerm |
getAstTerm()
Returns the attribute tom.engine.adt.tomterm.types.TomTerm |
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 |
int |
hashCode()
Returns hashCode |
protected int |
hashFunction()
Compute a hashcode for this term. |
boolean |
isTomTermToOption()
Returns true if the term is rooted by the symbol TomTermToOption |
static TomTermToOption |
make(TomTerm _AstTerm)
Constructor that builds a term rooted by TomTermToOption |
Option |
setAstTerm(TomTerm set_arg)
Sets and returns the attribute tom.engine.adt.tomoption.types.Option |
Visitable |
setChildAt(int index,
Visitable v)
Set the child at the specified index |
Visitable |
setChildren(Visitable[] childs)
Set children to the term |
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.tomoption.types.Option |
|---|
fromStream, fromStream, fromString, fromString, fromTerm, getAstDeclaration, getAstName, getFileName, getLine, getString, getTheory, isACSymbol, isConstant, isDebug, isDeclarationToOption, isDefinedSymbol, isGeneratedMatch, isImplicitXMLAttribut, isImplicitXMLChild, isLabel, isMatchingTheory, isModuleName, isnoOption, isOriginalText, isOriginTracking, isTomNameToOption, isTypeForVariable, length, reverse, setAstDeclaration, setAstName, setFileName, setLine, setString, setTheory |
| Methods inherited from class tom.engine.adt.tomoption.TomOptionAbstractType |
|---|
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 TomTermToOption make(TomTerm _AstTerm)
public String symbolName()
symbolName in class TomOptionAbstractTypepublic shared.SharedObject duplicate()
duplicate in interface shared.SharedObjectpublic void toStringBuilder(StringBuilder buffer)
toStringBuilder in class TomOptionAbstractTypebuffer - the buffer to which a string represention of this term is appended.public int compareToLPO(Object o)
compareToLPO in class TomOptionAbstractTypeo - 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 TomOptionAbstractTypeo - 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 isTomTermToOption()
isTomTermToOption in class Optionpublic TomTerm getAstTerm()
getAstTerm in class Optionpublic Option setAstTerm(TomTerm set_arg)
setAstTerm in class Optionset_arg - the argument to set
public aterm.ATerm toATerm()
toATerm in class Option
public static Option 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 1public Visitable[] getChildren()
getChildren in interface Visitableprotected int hashFunction()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||