|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttip.node.Node
tip.node.PExp
tip.node.AFunctionCallExp
public final class AFunctionCallExp
AFunctionCallExp
represents the function_call
alternative of the exp
production in the AST.
Constructor Summary | |
---|---|
AFunctionCallExp()
Creates a new AFunctionCallExp node with no children. |
|
AFunctionCallExp(TIdentifier _identifier_,
List<? extends PExp> _args_)
Creates a new AFunctionCallExp node with the given nodes as children. |
|
AFunctionCallExp(TIdentifier _identifier_,
List<? extends PExp> _args_,
Type _type_)
Creates a new AFunctionCallExp node with the given nodes as children. |
Method Summary | ||
---|---|---|
void |
apply(Analysis caller)
Calls the Analysis.caseAFunctionCallExp(AFunctionCallExp) of the Analysis caller . |
|
|
apply(Answer<A> caller)
Returns the answer for caller by applying this AFunctionCallExp
node to the Answer visitor. |
|
|
apply(Question<Q> caller,
Q question)
Applies this AFunctionCallExp node to the Question visitor caller . |
|
|
apply(QuestionAnswer<Q,A> caller,
Q question)
Returns the answer for caller by applying this AFunctionCallExp node with the
question to the QuestionAnswer visitor. |
|
void |
checkOptionalInvariant()
|
|
AFunctionCallExp |
clone()
Returns a deep clone of this AFunctionCallExp node. |
|
AFunctionCallExp |
clone(Map<Node,Node> oldToNewMap)
Creates a deep clone of this AFunctionCallExp node while putting all
old node-new node relations in the map oldToNewMap . |
|
LinkedList<PExp> |
getArgs()
Returns the possibly empty list of PExp nodes that are the args children of this AFunctionCallExp node. |
|
|
getChildren(Collection<T> collection,
NodeFilter<T> filter)
Adds all children of this AFunctionCallExp node that are
accepted by the NodeFilter filter to collection . |
|
|
getDescendants(Collection<T> collection,
NodeFilter<T> filter)
Adds all descendants of this AFunctionCallExp node (including the node itself) that are
accepted by the NodeFilter filter to collection . |
|
TIdentifier |
getIdentifier()
Returns the TIdentifier node which is the identifier child of this AFunctionCallExp node. |
|
Type |
getType()
Returns the type field of this AFunctionCallExp node. |
|
EExp |
kindPExp()
Returns the EExp corresponding to the
type of this PExp node. |
|
void |
setArgs(List<? extends PExp> value)
Sets the args children of this AFunctionCallExp node. |
|
void |
setIdentifier(TIdentifier value)
Sets the identifier child of this AFunctionCallExp node. |
|
void |
setType(Type value)
Sets the type field of this AFunctionCallExp node. |
|
String |
toString()
Returns a textual representation of this AFunctionCallExp node. |
Methods inherited from class tip.node.PExp |
---|
kindNode |
Methods inherited from class tip.node.Node |
---|
getAncestor, getAncestor, getAncestor, getChildren, getChildren, getDescendants, getDescendants, getDescendants, isOptionalInvariant, parent, replaceBy, setOptionalInvariant |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface tip.node.NodeInterface |
---|
getAncestor, getAncestor, getAncestor, getChildren, getChildren, getDescendants, getDescendants, getDescendants, isOptionalInvariant, parent, replaceBy, setOptionalInvariant |
Constructor Detail |
---|
public AFunctionCallExp()
AFunctionCallExp
node with no children.
public AFunctionCallExp(TIdentifier _identifier_, List<? extends PExp> _args_)
AFunctionCallExp
node with the given nodes as children.
The basic child nodes are removed from their previous parents.
_identifier_
- the TIdentifier
node for the Identifier
child of this AFunctionCallExp
node_args_
- the list of PExp
nodes for the Args
children of this AFunctionCallExp
nodepublic AFunctionCallExp(TIdentifier _identifier_, List<? extends PExp> _args_, Type _type_)
AFunctionCallExp
node with the given nodes as children.
The basic child nodes are removed from their previous parents.
_identifier_
- the TIdentifier
node for the Identifier
child of this AFunctionCallExp
node_args_
- the list of PExp
nodes for the Args
children of this AFunctionCallExp
node_type_
- the Type
child of this AFunctionCallExp
nodeMethod Detail |
---|
public AFunctionCallExp clone()
AFunctionCallExp
node.
clone
in interface NodeInterface
clone
in class PExp
AFunctionCallExp
nodepublic AFunctionCallExp clone(Map<Node,Node> oldToNewMap)
AFunctionCallExp
node while putting all
old node-new node relations in the map oldToNewMap
.
clone
in interface NodeInterface
clone
in class PExp
oldToNewMap
- the map filled with the old node-new node relation
AFunctionCallExp
nodepublic String toString()
AFunctionCallExp
node.
toString
in class Object
AFunctionCallExp
nodepublic EExp kindPExp()
EExp
corresponding to the
type of this PExp
node.
kindPExp
in class PExp
EExp
for this nodepublic TIdentifier getIdentifier()
TIdentifier
node which is the identifier
child of this AFunctionCallExp
node.
TIdentifier
node which is the identifier
child of this AFunctionCallExp
nodepublic void setIdentifier(TIdentifier value)
identifier
child of this AFunctionCallExp
node.
value
- the new identifier
child of this AFunctionCallExp
nodepublic LinkedList<PExp> getArgs()
PExp
nodes that are the args
children of this AFunctionCallExp
node.
PExp
nodes that are the args
children of this AFunctionCallExp
nodepublic void setArgs(List<? extends PExp> value)
args
children of this AFunctionCallExp
node.
value
- the new args
children of this AFunctionCallExp
nodepublic Type getType()
type
field of this AFunctionCallExp
node.
getType
in interface ITyped
getType
in class PExp
type
field of this AFunctionCallExp
nodepublic void setType(Type value)
type
field of this AFunctionCallExp
node.
setType
in interface ITyped
setType
in class PExp
value
- the new type
field of this AFunctionCallExp
nodepublic <T extends NodeInterface> void getDescendants(Collection<T> collection, NodeFilter<T> filter)
AFunctionCallExp
node (including the node itself) that are
accepted by the NodeFilter
filter
to collection
.
getDescendants
in interface NodeInterface
getDescendants
in class Node
collection
- the collection to which the descendants are addedfilter
- the NodeFilter
usedpublic <T extends NodeInterface> void getChildren(Collection<T> collection, NodeFilter<T> filter)
AFunctionCallExp
node that are
accepted by the NodeFilter
filter
to collection
.
getChildren
in interface NodeInterface
getChildren
in class Node
collection
- the collection to which the children are addedfilter
- the NodeFilter
usedpublic void checkOptionalInvariant()
checkOptionalInvariant
in interface NodeInterface
checkOptionalInvariant
in class Node
public void apply(Analysis caller)
Analysis.caseAFunctionCallExp(AFunctionCallExp)
of the Analysis
caller
.
apply
in interface NodeInterface
apply
in class Node
sw
- the Analysis
to which this AFunctionCallExp
node is appliedpublic <A> A apply(Answer<A> caller)
caller
by applying this AFunctionCallExp
node to the Answer
visitor.
apply
in interface NodeInterface
apply
in class Node
caller
- the Answer
to which this node is applied
caller
public <Q> void apply(Question<Q> caller, Q question)
AFunctionCallExp
node to the Question
visitor caller
.
apply
in interface NodeInterface
apply
in class Node
caller
- the Question
to which this node is appliedquestion
- the question provided to caller
public <Q,A> A apply(QuestionAnswer<Q,A> caller, Q question)
caller
by applying this AFunctionCallExp
node with the
question
to the QuestionAnswer
visitor.
apply
in interface NodeInterface
apply
in class Node
caller
- the QuestionAnswer
to which this node is appliedquestion
- the question provided to caller
caller
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |