public class MethodInvocation extends StatementExpression
| Modifier and Type | Field and Description |
|---|---|
ExpressionList |
arguments
(¬ø) The argument expressions passed to the method.
|
boolean |
isClassifierInvocation
Filled in by the
SemanticAnalysis pass, this variable is set to
true iff this invocation represents a classifier invocation. |
boolean |
isEvaluateArgument
Filled in by the
SemanticAnalysis pass, this variable is set to
true iff this invocation is the argument of a learning classifier expression's
evaluate clause. |
boolean |
isSensedValue
The
SemanticAnalysis pass will let this MethodInvocation know if it
is the immediate value child of a SenseStatement by setting this
flag. |
Name |
name
(¬ø) The name of the method to be invoked.
|
Expression |
parentObject
(ø) This expression evaluates to the object whose method will be called.
|
parenthesized, typeCache, typeCacheFilledbyteOffset, line, nodeID, symbolTable| Constructor and Description |
|---|
MethodInvocation(Expression p,
Name n,
ExpressionList a,
int line,
int byteOffset)
Full constructor.
|
MethodInvocation(Expression p,
TokenValue n)
Parser's constructor.
|
MethodInvocation(Expression p,
TokenValue n,
ExpressionList a)
Parser's constructor.
|
MethodInvocation(Name n)
Initializing constructor.
|
MethodInvocation(Name n,
ExpressionList a)
Initializing constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a new object with the same primitive data, and recursively creates new member data
objects as well.
|
boolean |
containsQuantifiedVariable()
Determines if there are any quantified variables in this expression.
|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
HashSet |
getVariableTypes()
Returns a set of
Arguments storing the name and type of each variable that is a
subexpression of this expression. |
int |
hashCode()
Returns a hash code value for java hash structures.
|
ASTNodeIterator |
iterator()
Returns an iterator used to successively access the children of this node.
|
void |
runPass(Pass pass)
Ensures that the correct
run() method is called for this type of node. |
void |
senseValueChild()
Sets the
isSensedValue flag. |
void |
write(StringBuffer buffer)
Writes a string representation of this
ASTNode to the specified buffer. |
public Expression parentObject
public Name name
public ExpressionList arguments
public boolean isClassifierInvocation
SemanticAnalysis pass, this variable is set to
true iff this invocation represents a classifier invocation.SemanticAnalysispublic boolean isEvaluateArgument
SemanticAnalysis pass, this variable is set to
true iff this invocation is the argument of a learning classifier expression's
evaluate clause.SemanticAnalysispublic boolean isSensedValue
SemanticAnalysis pass will let this MethodInvocation know if it
is the immediate value child of a SenseStatement by setting this
flag.SemanticAnalysispublic MethodInvocation(Name n)
n - The name of the method being invoked.public MethodInvocation(Name n, ExpressionList a)
n - The name of the method being invoked.a - The argument expressions passed to the method.public MethodInvocation(Expression p, TokenValue n)
p - Represents the object whose method is being invoked.n - Token representing the name of the method being invoked.public MethodInvocation(Expression p, TokenValue n, ExpressionList a)
p - Represents the object whose method is being invoked.n - Token representing the name of the method being invoked.a - The argument expressions passed to the method.public MethodInvocation(Expression p, Name n, ExpressionList a, int line, int byteOffset)
p - Represents the object whose method is being invoked.n - The name of the method being invoked.a - The argument expressions passed to the method.line - The line on which the source code represented by this node is found.byteOffset - The byte offset from the beginning of the source file at which the source
code represented by this node is found.public HashSet getVariableTypes()
Arguments storing the name and type of each variable that is a
subexpression of this expression. This method cannot be run before
SemanticAnalysis runs.getVariableTypes in class Expressionpublic boolean containsQuantifiedVariable()
SemanticAnalysis runs.containsQuantifiedVariable in class Expressionpublic void senseValueChild()
isSensedValue flag.senseValueChild in class ExpressionSemanticAnalysispublic int hashCode()
public boolean equals(Object o)
public ASTNodeIterator iterator()
public Object clone()
public void runPass(Pass pass)
run() method is called for this type of node.public void write(StringBuffer buffer)
ASTNode to the specified buffer. The
representation written is parsable by the LBJava compiler, but not very readable.Copyright © 2016. All rights reserved.