|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcode.term.Term
public class Term
This class implements a term. There is an overloaded constructor for each kind of term:
| Field Summary | |
|---|---|
static Term[] |
noArgs
Terms made up by a nullary symbol must still use the binary constructor to discriminate with the constructor that construct integer constants. |
(package private) TermImpl |
representation
The implementation of this term. |
| Constructor Summary | |
|---|---|
Term(char value)
|
|
Term(float value)
|
|
Term(int value)
|
|
Term(int root,
Term[] argument)
|
|
Term(java.lang.String value)
|
|
Term(Term referee)
|
|
Term(TermImpl representation)
|
|
Term(Variable variable)
|
|
| Method Summary | |
|---|---|
Term |
cloneWithReplace(Term out,
Term in)
|
Term |
cloneWithSubst(Subst subst)
|
Term |
eqBool(Term right)
|
Term |
eqSuccess(Term right)
|
Term[] |
getArgument()
Returns the list of arguments for this term. |
Term |
getArgument(byte number)
Returns the number-th argument of this term. |
Instruction[] |
getCode()
Returns the bytecode represented with objects for rewritting this term. |
byte |
getKind()
Returns the kind of this term. |
TermImpl |
getRepresentation()
|
int |
getRoot()
Returns the root id of this term. |
java.lang.String |
getRootSymbol()
Returns the root symbol of this term |
boolean |
isHNF()
Returns true if this term is in head normal form. |
boolean |
isNF()
Returns true if this term is in normal form. |
java.lang.String |
toString()
Returns a String representation of this term. |
java.lang.String |
toString(Subst substitution)
Returns a String representation of this term. |
void |
update(Term replacement)
Replaces the representation of this term with the replacement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
TermImpl representation
public static final Term[] noArgs
| Constructor Detail |
|---|
public Term(int root,
Term[] argument)
public Term(Variable variable)
public Term(int value)
public Term(float value)
public Term(char value)
public Term(java.lang.String value)
public Term(TermImpl representation)
public Term(Term referee)
| Method Detail |
|---|
public TermImpl getRepresentation()
public int getRoot()
public java.lang.String getRootSymbol()
public Term[] getArgument()
public Term getArgument(byte number)
number -
public byte getKind()
public boolean isHNF()
public boolean isNF()
public Instruction[] getCode()
public void update(Term replacement)
replacement - The replacementpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(Subst substitution)
public Term eqSuccess(Term right)
public Term eqBool(Term right)
public Term cloneWithSubst(Subst subst)
public Term cloneWithReplace(Term out,
Term in)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||