|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.compiler.injection.GrailsASTUtils
public class GrailsASTUtils
Helper methods for working with Groovy AST trees
Constructor Summary | |
---|---|
GrailsASTUtils()
|
Method Summary | |
---|---|
static String |
getFullName(org.codehaus.groovy.ast.ClassNode classNode)
Gets the full name of a ClassNode |
static boolean |
hasProperty(org.codehaus.groovy.ast.ClassNode classNode,
String propertyName)
Returns whether a classNode has the specified property or not |
static boolean |
implementsZeroArgMethod(org.codehaus.groovy.ast.ClassNode classNode,
String methodName)
Tests whether the ClasNode implements the specified method name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrailsASTUtils()
Method Detail |
---|
public static boolean hasProperty(org.codehaus.groovy.ast.ClassNode classNode, String propertyName)
classNode
- The ClassNodepropertyName
- The name of the property
public static boolean implementsZeroArgMethod(org.codehaus.groovy.ast.ClassNode classNode, String methodName)
classNode
- The ClassNodemethodName
- The method name
public static String getFullName(org.codehaus.groovy.ast.ClassNode classNode)
classNode
- The class node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |