|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Node | +--FunctionCallNode
This class implements a function call node.
Function
,
NodeList
Fields inherited from class Node |
MAX_PRIORITY, MIN_PRIORITY |
Constructor Summary | |
FunctionCallNode(Function id,
NodeList parameters)
Constructor of the function call node. |
Method Summary | |
Node |
applySubst(Substitution sigma)
Applies a substitution to this term. |
Node |
argument(int index)
Returns the argument of the call at the specified position. |
NodeList |
arguments()
Returns the arguments of the call. |
Node |
bot(Path p)
Computes bottom part of the term. |
Path |
botPath()
Compute MAXIMUN BOTTOM PATH. |
boolean |
equals(Object node)
Tests if some other object is "equal to" this one. |
Path |
find(Node node)
Find the path to a substerm in a term. |
boolean |
getAsPart(Node node)
Tests if this function call node as an other as part. |
int |
getNumber(Type t)
Returns number of sub term with a specified type of this node. |
Node |
getSubterm(Path p)
Get subterm at specified path. |
boolean |
getTwo(Type t)
Tests if this term got two sub term of a specified type. |
Type |
getType()
Returns the type of the term. |
void |
getVariables(Set vars)
Extends the set of variables with the ones of this term. |
boolean |
greaterThan(Node node)
Tests if this function call node is greater (in order) than an other term. |
Function |
identifier()
Returns the identifier of the function. |
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. |
void |
makeFilter(Node node,
Substitution sigma)
Constructs a filter between this function call node and an other one. |
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)
Remplaces subterm at specified path by an other. |
Node |
top(Path p)
Computes top part of the term. |
Path |
topPath()
Compute MAXIMUN TOP PATH. |
String |
toString()
Returns a string representation of this function call node. |
protected String |
toStringInfix()
Returns a string representation of this function call node when it is an argument of an infix call. |
Methods inherited from class Node |
isGround, withNewVariables |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FunctionCallNode(Function id, NodeList parameters)
id
- identifier of the function.parameters
- arguments of the call.Method Detail |
public Type getType()
getType
in class Node
public NodeList arguments()
public Node argument(int index)
index
- index of argument to return.public Function identifier()
public Node applySubst(Substitution sigma)
applySubst
in class Node
sigma
- the substitution map.public void makeFilter(Node node, Substitution sigma) throws SubstitutionStop
makeFilter
in class Node
node
- the other term.sigma
- the substitution map in construction.SubstitutionStop
- public boolean greaterThan(Node node)
greaterThan
in class Node
node
- the other term.public boolean getAsPart(Node node)
getAsPart
in class Node
node
- the other term.public int numAsPart(Node node)
numAsPart
in class Node
node
- the other term.public Path find(Node node)
find
in class Node
node
- the subterm.public Path topPath()
topPath
in class Node
public Path botPath()
botPath
in class Node
public Node top(Path p)
top
in class Node
p
- a top path.public Node ntp(Path p)
ntp
in class Node
p
- a top path.public Node bot(Path p)
bot
in class Node
p
- a bottom path.public Node nbt(Path p)
nbt
in class Node
p
- a bottom path.public void inductionVariables(Map iv, int priority)
inductionVariables
in class Node
iv
- the map in construction.priority
- the current priority.public void getVariables(Set vars)
getVariables
in class Node
vars
- the set of variables in construction.public Node getSubterm(Path p)
getSubterm
in class Node
p
- path to subterm.public Node remplaceSubterm(Path p, Node n)
remplaceSubterm
in class Node
p
- path to subterm.n
- node to put at path.public boolean isConstructorRooted()
isConstructorRooted
in class Node
public boolean isConstant()
isConstant
in class Node
public int getNumber(Type t)
getNumber
in class Node
t
- the type.public boolean getTwo(Type t)
t
- the type.public boolean equals(Object node)
equals
in class Object
node
- the term with which to compare.public String toString()
toString
in class Object
protected String toStringInfix()
toStringInfix
in class Node
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |