Save This Page
Home » groovy-src-1.6.3 » org.codehaus » groovy » ast » [javadoc | source]
org.codehaus.groovy.ast
public class: MethodNode [javadoc | source]
java.lang.Object
   org.codehaus.groovy.ast.ASTNode
      org.codehaus.groovy.ast.AnnotatedNode
         org.codehaus.groovy.ast.MethodNode

All Implemented Interfaces:
    org.objectweb.asm.Opcodes

Direct Known Subclasses:
    ConstructorNode

Represents a method declaration
Field Summary
 String typeDescriptor     
Fields inherited from org.codehaus.groovy.ast.AnnotatedNode:
declaringClass
Constructor:
 public MethodNode(String name,
    int modifiers,
    ClassNode returnType,
    Parameter[] parameters,
    ClassNode[] exceptions,
    Statement code) 
Method from org.codehaus.groovy.ast.MethodNode Summary:
getCode,   getExceptions,   getFirstStatement,   getGenericsTypes,   getModifiers,   getName,   getParameters,   getReturnType,   getTypeDescriptor,   getVariableScope,   hasAnnotationDefault,   hasDefaultValue,   isAbstract,   isDynamicReturnType,   isPrivate,   isProtected,   isPublic,   isStatic,   isVoidMethod,   setAnnotationDefault,   setCode,   setGenericsTypes,   setModifiers,   setParameters,   setReturnType,   setVariableScope,   toString
Methods from org.codehaus.groovy.ast.AnnotatedNode:
addAnnotation,   addAnnotations,   getAnnotations,   getAnnotations,   getDeclaringClass,   isSynthetic,   setDeclaringClass,   setSynthetic
Methods from org.codehaus.groovy.ast.ASTNode:
getColumnNumber,   getLastColumnNumber,   getLastLineNumber,   getLineNumber,   getText,   setColumnNumber,   setLastColumnNumber,   setLastLineNumber,   setLineNumber,   setSourcePosition,   visit
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.codehaus.groovy.ast.MethodNode Detail:
 public Statement getCode() 
 public ClassNode[] getExceptions() 
 public Statement getFirstStatement() 
 public GenericsType[] getGenericsTypes() 
 public int getModifiers() 
 public String getName() 
 public Parameter[] getParameters() 
 public ClassNode getReturnType() 
 public String getTypeDescriptor() 
    The type descriptor for a method node is a string containing the name of the method, its return type, and its parameter types in a canonical form. For simplicity, I'm using the format of a Java declaration without parameter names.
 public VariableScope getVariableScope() 
 public boolean hasAnnotationDefault() 
 public boolean hasDefaultValue() 
 public boolean isAbstract() 
 public boolean isDynamicReturnType() 
 public boolean isPrivate() 
 public boolean isProtected() 
 public boolean isPublic() 
 public boolean isStatic() 
 public boolean isVoidMethod() 
 public  void setAnnotationDefault(boolean b) 
 public  void setCode(Statement code) 
 public  void setGenericsTypes(GenericsType[] genericsTypes) 
 public  void setModifiers(int modifiers) 
 public  void setParameters(Parameter[] parameters) 
 public  void setReturnType(ClassNode returnType) 
 public  void setVariableScope(VariableScope variableScope) 
 public String toString()