org.codehaus.groovy.transform.stc
[Java] Class ExtensionMethodNode
java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.AnnotatedNode
org.codehaus.groovy.ast.MethodNode
org.codehaus.groovy.transform.stc.ExtensionMethodNode
public class ExtensionMethodNode
extends MethodNode
Represents method nodes which are used by the static type checker to virtually add methods
coming from DGM-like methods.
- Authors:
- Cedric Champeau
Constructor Summary |
ExtensionMethodNode(MethodNode extensionMethodNode, String name, int modifiers, ClassNode returnType, Parameter[] parameters, ClassNode[] exceptions, Statement code, boolean isStaticExtension)
|
ExtensionMethodNode(MethodNode extensionMethodNode, String name, int modifiers, ClassNode returnType, Parameter[] parameters, ClassNode[] exceptions, Statement code)
|
Methods inherited from class MethodNode
|
getCode, getExceptions, getFirstStatement, getGenericsTypes, getModifiers, getName, getParameters, getReturnType, getText, getTypeDescriptor, getVariableScope, hasAnnotationDefault, hasDefaultValue, isAbstract, isDynamicReturnType, isFinal, isPrivate, isProtected, isPublic, isScriptBody, isStatic, isStaticConstructor, isSyntheticPublic, isVoidMethod, setAnnotationDefault, setCode, setGenericsTypes, setModifiers, setParameters, setReturnType, setSyntheticPublic, setVariableScope, toString |
Methods inherited from class ASTNode
|
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit |
ExtensionMethodNode
public ExtensionMethodNode(MethodNode extensionMethodNode, String name, int modifiers, ClassNode returnType, Parameter[] parameters, ClassNode[] exceptions, Statement code, boolean isStaticExtension)
-
ExtensionMethodNode
public ExtensionMethodNode(MethodNode extensionMethodNode, String name, int modifiers, ClassNode returnType, Parameter[] parameters, ClassNode[] exceptions, Statement code)
-
getExtensionMethodNode
public MethodNode getExtensionMethodNode()
-
isStaticExtension
public boolean isStaticExtension()
-
Copyright © 2003-2013 The Codehaus. All rights reserved.