public class StaticMethodCallExpression
extends Expression
implements MethodCall
A static method call on a class
| Fields inherited from class | Fields |
|---|---|
class Expression |
EMPTY_ARRAY |
| Constructor and description |
|---|
StaticMethodCallExpression(ClassNode type, String method, Expression arguments)Creates a static call of method on type. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Expression |
getArguments() |
|
public MetaMethod |
getMetaMethod()Returns the meta-method recorded by setMetaMethod. |
|
public String |
getMethod()Returns the name of the method being called. |
|
public String |
getMethodAsString() |
|
public ClassNode |
getOwnerType()Returns the class the static method is invoked on. |
|
public ASTNode |
getReceiver() |
|
public String |
getText() |
|
public void |
setMetaMethod(MetaMethod metaMethod)Records the meta-method selected for this call. |
|
public void |
setOwnerType(ClassNode ownerType)Replaces the class the static method is invoked on. |
|
public String |
toString() |
|
public Expression |
transformExpression(ExpressionTransformer transformer) |
|
public void |
visit(GroovyCodeVisitor visitor) |
| Methods inherited from class | Name |
|---|---|
class Expression |
getType, setType, transformExpression, transformExpressions, transformExpressions |
class AnnotatedNode |
addAnnotation, addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
class ASTNode |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit |
Creates a static call of method on type.
type - class the method is invoked onmethod - method namearguments - argument list, usually a tuple expressionReturns the meta-method recorded by setMetaMethod.
Returns the name of the method being called.
Returns the class the static method is invoked on.
Records the meta-method selected for this call. Null until the call has been resolved.
metaMethod - resolved meta-method, or null to clear itReplaces the class the static method is invoked on.
ownerType - class to invoke the method onCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.