public class InstanceCreationExpression extends MethodInvocation
arguments, isClassifierInvocation, isEvaluateArgument, isSensedValue, name, parentObjectparenthesized, typeCache, typeCacheFilledbyteOffset, line, nodeID, symbolTable| Constructor and Description |
|---|
InstanceCreationExpression(Expression p,
Name n,
ExpressionList a,
int line,
int byteOffset)
Full constructor.
|
InstanceCreationExpression(Expression p,
Name n,
int line,
int byteOffset)
Initializing constructor.
|
InstanceCreationExpression(Name n,
ExpressionList a,
int line,
int byteOffset)
Initializing constructor.
|
InstanceCreationExpression(Name n,
int line,
int byteOffset)
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 |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
void |
runPass(Pass pass)
Ensures that the correct
run() method is called for this type of node. |
void |
write(StringBuffer buffer)
Writes a string representation of this
ASTNode to the specified buffer. |
containsQuantifiedVariable, getVariableTypes, hashCode, iterator, senseValueChildpublic InstanceCreationExpression(Name n, int line, int byteOffset)
n - The name of the class or inner class to instantiate.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 InstanceCreationExpression(Name n, ExpressionList a, int line, int byteOffset)
n - The name of the class or inner class to instantiate.a - The argument expressions passed to the constructor.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 InstanceCreationExpression(Expression p, Name n, int line, int byteOffset)
p - Represents the parent object containing an inner class.n - The name of the class or inner class to instantiate.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 InstanceCreationExpression(Expression p, Name n, ExpressionList a, int line, int byteOffset)
p - Represents the parent object containing an inner class.n - The name of the class or inner class to instantiate.a - The argument expressions passed to the constructor.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 boolean equals(Object o)
equals in class MethodInvocationtrue iff this object is the same as the argument.public Object clone()
clone in class MethodInvocationpublic void runPass(Pass pass)
run() method is called for this type of node.runPass in class MethodInvocationpass - The pass whose run() method should be called.public void write(StringBuffer buffer)
ASTNode to the specified buffer. The
representation written is parsable by the LBJava compiler, but not very readable.write in class MethodInvocationbuffer - The buffer to write to.Copyright © 2016. All rights reserved.