|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttom.engine.adt.il.IlAbstractType
tom.engine.adt.il.types.DerivTree
public abstract class DerivTree
Field Summary | |
---|---|
protected static IdConverter |
idConv
|
Fields inherited from class tom.engine.adt.il.IlAbstractType |
---|
atermFactory, factory |
Constructor Summary | |
---|---|
protected |
DerivTree()
Sole constructor. |
Method Summary | |
---|---|
static DerivTree |
fromStream(InputStream stream)
Returns a tom.engine.adt.il.types.DerivTree from a Stream without any conversion |
static DerivTree |
fromStream(InputStream stream,
ATermConverter atConv)
Apply a conversion on the ATerm contained in the Stream and returns a tom.engine.adt.il.types.DerivTree from it |
static DerivTree |
fromString(String s)
Returns a tom.engine.adt.il.types.DerivTree from a String without any conversion |
static DerivTree |
fromString(String s,
ATermConverter atConv)
Apply a conversion on the ATerm contained in the String and returns a tom.engine.adt.il.types.DerivTree from it |
static DerivTree |
fromTerm(aterm.ATerm trm)
Returns a tom.engine.adt.il.types.DerivTree from an ATerm without any conversion |
static DerivTree |
fromTerm(aterm.ATerm trm,
ATermConverter atConv)
Apply a conversion on the ATerm and returns a tom.engine.adt.il.types.DerivTree |
Seq |
getCond()
Returns the subterm corresponding to the slot Cond |
String |
getName()
Returns the subterm corresponding to the slot Name |
Deriv |
getPost()
Returns the subterm corresponding to the slot Post |
DerivTree |
getPre()
Returns the subterm corresponding to the slot Pre |
DerivTree |
getPre2()
Returns the subterm corresponding to the slot Pre2 |
boolean |
isderivrule()
Returns true if the term is rooted by the symbol derivrule |
boolean |
isderivrule2()
Returns true if the term is rooted by the symbol derivrule2 |
boolean |
isendderiv()
Returns true if the term is rooted by the symbol endderiv |
int |
length()
Returns the length of the list |
DerivTree |
reverse()
Returns an inverted term |
DerivTree |
setCond(Seq _arg)
Returns a new term where the subterm corresponding to the slot Cond is replaced by the term given in argument. |
DerivTree |
setName(String _arg)
Returns a new term where the subterm corresponding to the slot Name is replaced by the term given in argument. |
DerivTree |
setPost(Deriv _arg)
Returns a new term where the subterm corresponding to the slot Post is replaced by the term given in argument. |
DerivTree |
setPre(DerivTree _arg)
Returns a new term where the subterm corresponding to the slot Pre is replaced by the term given in argument. |
DerivTree |
setPre2(DerivTree _arg)
Returns a new term where the subterm corresponding to the slot Pre2 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.il.IlAbstractType |
---|
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 DerivTree()
Method Detail |
---|
public boolean isendderiv()
public boolean isderivrule()
public boolean isderivrule2()
public String getName()
public DerivTree setName(String _arg)
_arg
- the value of the new subterm
public DerivTree getPre2()
public DerivTree setPre2(DerivTree _arg)
_arg
- the value of the new subterm
public DerivTree getPre()
public DerivTree setPre(DerivTree _arg)
_arg
- the value of the new subterm
public Seq getCond()
public DerivTree setCond(Seq _arg)
_arg
- the value of the new subterm
public Deriv getPost()
public DerivTree setPost(Deriv _arg)
_arg
- the value of the new subterm
public aterm.ATerm toATerm()
toATerm
in class IlAbstractType
public static DerivTree fromTerm(aterm.ATerm trm)
trm
- ATerm to handle to retrieve a Gom term
public static DerivTree fromString(String s)
s
- String containing the ATerm
public static DerivTree fromStream(InputStream stream) throws IOException
stream
- stream containing the ATerm
IOException
- if a problem occurs with the streampublic static DerivTree fromTerm(aterm.ATerm trm, ATermConverter atConv)
trm
- ATerm to convert into a Gom termatConv
- ATermConverter used to convert the ATerm
IllegalArgumentException
public static DerivTree fromString(String s, ATermConverter atConv)
s
- String containing the ATermatConv
- ATerm Converter used to convert the ATerm
public static DerivTree fromStream(InputStream stream, ATermConverter atConv) throws IOException
stream
- stream containing the ATermatConv
- ATerm Converter used to convert the ATerm
IOException
public int length()
IllegalArgumentException
- if the term is not a listpublic DerivTree 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 |