|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Node
This class provides a skeletal implementation of a term. It is an expression tree node.
Field Summary | |
static int |
MAX_PRIORITY
The highest priority for an induction variable. |
static int |
MIN_PRIORITY
The lowest priority for an induction variable. |
Constructor Summary | |
Node()
|
Method Summary | |
abstract Node |
applySubst(Substitution sigma)
Applies a substitution to this term. |
Node |
bot(Path p)
Computes bottom part of the term. |
Path |
botPath()
Compute MAXIMUN BOTTOM PATH. |
Path |
find(Node node)
Find the path to a substerm in a term. |
boolean |
getAsPart(Node node)
Tests if this term as an other as part. |
abstract int |
getNumber(Type t)
Returns number of sub term with a specified type of this node. |
Node |
getSubterm(Path p)
Gives subterm at specified path. |
abstract Type |
getType()
Returns the type of the term. |
abstract void |
getVariables(Set vars)
Extends the set of variables apparing in this term. |
abstract boolean |
greaterThan(Node node)
Tests if this term is greater (in order) than an other. |
abstract void |
inductionVariables(Map iv,
int priority)
Extends the map of induction variable with the ones of this term. |
boolean |
isConstant()
Indicates if this term is a constant. |
boolean |
isConstructorRooted()
Tests if this term is rooted by a constructor symbol. |
boolean |
isGround()
Indicates if this term is ground. |
abstract void |
makeFilter(Node node,
Substitution sigma)
Constructs a filter between this term and an other. |
Node |
nbt(Path p)
Computes nbt part of the term. |
Node |
ntp(Path p)
Computes npt part of the term. |
int |
numAsPart(Node node)
Counts how many times this term as an other as part. |
Node |
remplaceSubterm(Path p,
Node n)
Remplace subterm at specified path by an other. |
Node |
top(Path p)
Computes top part of the term. |
Path |
topPath()
Compute MAXIMUN TOP PATH. |
protected String |
toStringInfix()
Returns a string representation of this term when it is an argument of an infix call. |
Node |
withNewVariables()
Remplaces varia1bles in term by new variables. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MAX_PRIORITY
public static final int MIN_PRIORITY
Constructor Detail |
public Node()
Method Detail |
public abstract Type getType()
public abstract Node applySubst(Substitution sigma)
sigma
- the substitution map.public abstract void makeFilter(Node node, Substitution sigma) throws SubstitutionStop
node
- the other term.sigma
- the substitution map in construction.SubstitutionStop
- public abstract boolean greaterThan(Node node)
node
- the other term.public boolean getAsPart(Node node)
node
- the other term.public int numAsPart(Node node)
node
- the other term.public Path find(Node node)
node
- the subterm.public Path topPath()
public Path botPath()
public Node top(Path p)
p
- a top path.public Node ntp(Path p)
p
- a top path.public Node bot(Path p)
p
- a bottom path.public Node nbt(Path p)
p
- a bottom path.public abstract void inductionVariables(Map iv, int priority)
iv
- the map in construction.priority
- the current priority.public abstract void getVariables(Set vars)
vars
- the set of variables in construction.public Node getSubterm(Path p)
p
- path to subterm.public Node remplaceSubterm(Path p, Node n)
p
- path to subterm.n
- node to put at path.public Node withNewVariables()
public boolean isGround()
public boolean isConstant()
public boolean isConstructorRooted()
public abstract int getNumber(Type t)
t
- the type.protected String toStringInfix()
FunctionCallNode
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |