|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.ASTNode org.codehaus.groovy.ast.AnnotatedNode org.codehaus.groovy.ast.expr.Expression org.codehaus.groovy.ast.expr.MethodCallExpression
public class MethodCallExpression extends Expression
A method call on an object or class
Field Summary | |
---|---|
static Expression |
NO_ARGUMENTS
|
Constructor Summary | |
MethodCallExpression(Expression objectExpression, String method, Expression arguments)
|
|
MethodCallExpression(Expression objectExpression, Expression method, Expression arguments)
|
Method Summary | |
---|---|
Expression
|
getArguments()
|
GenericsType[]
|
getGenericsTypes()
|
Expression
|
getMethod()
|
String
|
getMethodAsString()
|
MethodNode
|
getMethodTarget()
@return the target as method node if set |
Expression
|
getObjectExpression()
|
ASTNode
|
getReceiver()
|
String
|
getText()
|
boolean
|
isImplicitThis()
|
boolean
|
isSafe()
@return is this a safe method call, i.e. if true then if the source object is null then this method call will return null rather than throwing a null pointer exception |
boolean
|
isSpreadSafe()
|
boolean
|
isUsingGenerics()
|
void
|
setArguments(Expression arguments)
|
void
|
setGenericsTypes(GenericsType[] genericsTypes)
|
void
|
setImplicitThis(boolean implicitThis)
|
void
|
setMethod(Expression method)
|
void
|
setMethodTarget(MethodNode mn)
|
void
|
setObjectExpression(Expression objectExpression)
|
void
|
setSafe(boolean safe)
|
void
|
setSpreadSafe(boolean value)
|
String
|
toString()
|
Expression
|
transformExpression(ExpressionTransformer transformer)
|
void
|
visit(GroovyCodeVisitor visitor)
|
Methods inherited from class Expression | |
---|---|
getType, setType, transformExpression, transformExpressions, transformExpressions |
Methods inherited from class AnnotatedNode | |
---|---|
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
public static final Expression NO_ARGUMENTS
Constructor Detail |
---|
public MethodCallExpression(Expression objectExpression, String method, Expression arguments)
public MethodCallExpression(Expression objectExpression, Expression method, Expression arguments)
Method Detail |
---|
public Expression getArguments()
public GenericsType[] getGenericsTypes()
public Expression getMethod()
public String getMethodAsString()
public MethodNode getMethodTarget()
public Expression getObjectExpression()
public ASTNode getReceiver()
public String getText()
public boolean isImplicitThis()
public boolean isSafe()
public boolean isSpreadSafe()
public boolean isUsingGenerics()
public void setArguments(Expression arguments)
public void setGenericsTypes(GenericsType[] genericsTypes)
public void setImplicitThis(boolean implicitThis)
public void setMethod(Expression method)
public void setMethodTarget(MethodNode mn)
public void setObjectExpression(Expression objectExpression)
public void setSafe(boolean safe)
public void setSpreadSafe(boolean value)
public String toString()
public Expression transformExpression(ExpressionTransformer transformer)
public void visit(GroovyCodeVisitor visitor)
Copyright © 2003-2013 The Codehaus. All rights reserved.