|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttom.engine.adt.typeconstraints.TypeConstraintsAbstractType
tom.engine.adt.typeconstraints.types.TypeConstraint
public abstract class TypeConstraint
| Field Summary | |
|---|---|
protected static IdConverter |
idConv
|
| Fields inherited from class tom.engine.adt.typeconstraints.TypeConstraintsAbstractType |
|---|
atermFactory, factory |
| Constructor Summary | |
|---|---|
protected |
TypeConstraint()
Sole constructor. |
| Method Summary | |
|---|---|
static TypeConstraint |
fromStream(InputStream stream)
Returns a tom.engine.adt.typeconstraints.types.TypeConstraint from a Stream without any conversion |
static TypeConstraint |
fromStream(InputStream stream,
ATermConverter atConv)
Apply a conversion on the ATerm contained in the Stream and returns a tom.engine.adt.typeconstraints.types.TypeConstraint from it |
static TypeConstraint |
fromString(String s)
Returns a tom.engine.adt.typeconstraints.types.TypeConstraint from a String without any conversion |
static TypeConstraint |
fromString(String s,
ATermConverter atConv)
Apply a conversion on the ATerm contained in the String and returns a tom.engine.adt.typeconstraints.types.TypeConstraint from it |
static TypeConstraint |
fromTerm(aterm.ATerm trm)
Returns a tom.engine.adt.typeconstraints.types.TypeConstraint from an ATerm without any conversion |
static TypeConstraint |
fromTerm(aterm.ATerm trm,
ATermConverter atConv)
Apply a conversion on the ATerm and returns a tom.engine.adt.typeconstraints.types.TypeConstraint |
Info |
getInfo()
Returns the subterm corresponding to the slot Info |
TomType |
getType1()
Returns the subterm corresponding to the slot Type1 |
TomType |
getType2()
Returns the subterm corresponding to the slot Type2 |
boolean |
isEquation()
Returns true if the term is rooted by the symbol Equation |
boolean |
isSubtype()
Returns true if the term is rooted by the symbol Subtype |
int |
length()
Returns the length of the list |
TypeConstraint |
reverse()
Returns an inverted term |
TypeConstraint |
setInfo(Info _arg)
Returns a new term where the subterm corresponding to the slot Info is replaced by the term given in argument. |
TypeConstraint |
setType1(TomType _arg)
Returns a new term where the subterm corresponding to the slot Type1 is replaced by the term given in argument. |
TypeConstraint |
setType2(TomType _arg)
Returns a new term where the subterm corresponding to the slot Type2 is replaced by the term given in argument. |
aterm.ATerm |
toATerm()
Returns an ATerm representation of this term. |
| Methods inherited from class tom.engine.adt.typeconstraints.TypeConstraintsAbstractType |
|---|
compareTo, compareToLPO, convertATermToBoolean, convertATermToChar, convertATermToDouble, convertATermToFloat, convertATermToInt, convertATermToLong, convertATermToString, getUniqueIdentifier, setUniqueIdentifier, symbolName, toString, toStringBuilder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface shared.SharedObject |
|---|
duplicate, equivalent, hashCode |
| Methods inherited from interface tom.library.sl.Visitable |
|---|
getChildAt, getChildCount, getChildren, setChildAt, setChildren |
| Field Detail |
|---|
protected static IdConverter idConv
| Constructor Detail |
|---|
protected TypeConstraint()
| Method Detail |
|---|
public boolean isEquation()
public boolean isSubtype()
public Info getInfo()
public TypeConstraint setInfo(Info _arg)
_arg - the value of the new subterm
public TomType getType1()
public TypeConstraint setType1(TomType _arg)
_arg - the value of the new subterm
public TomType getType2()
public TypeConstraint setType2(TomType _arg)
_arg - the value of the new subterm
public aterm.ATerm toATerm()
toATerm in class TypeConstraintsAbstractTypepublic static TypeConstraint fromTerm(aterm.ATerm trm)
trm - ATerm to handle to retrieve a Gom term
public static TypeConstraint fromString(String s)
s - String containing the ATerm
public static TypeConstraint fromStream(InputStream stream)
throws IOException
stream - stream containing the ATerm
IOException - if a problem occurs with the stream
public static TypeConstraint fromTerm(aterm.ATerm trm,
ATermConverter atConv)
trm - ATerm to convert into a Gom termatConv - ATermConverter used to convert the ATerm
IllegalArgumentException
public static TypeConstraint fromString(String s,
ATermConverter atConv)
s - String containing the ATermatConv - ATerm Converter used to convert the ATerm
public static TypeConstraint fromStream(InputStream stream,
ATermConverter atConv)
throws IOException
stream - stream containing the ATermatConv - ATerm Converter used to convert the ATerm
IOExceptionpublic int length()
IllegalArgumentException - if the term is not a listpublic TypeConstraint reverse()
IllegalArgumentException - if the term is not a list
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||