|
||||||||||
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 org.codehaus.groovy.ast.ClassNode |
getFurthestParent(org.codehaus.groovy.ast.ClassNode classNode)
|
static boolean |
hasOrInheritsProperty(org.codehaus.groovy.ast.ClassNode classNode,
String propertyName)
|
static boolean |
hasProperty(org.codehaus.groovy.ast.ClassNode classNode,
String propertyName)
Returns whether a classNode has the specified property or not |
static boolean |
implementsOrInheritsZeroArgMethod(org.codehaus.groovy.ast.ClassNode classNode,
String methodName,
List ignoreClasses)
|
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 hasOrInheritsProperty(org.codehaus.groovy.ast.ClassNode classNode, String propertyName)
public static boolean implementsZeroArgMethod(org.codehaus.groovy.ast.ClassNode classNode, String methodName)
classNode
- The ClassNodemethodName
- The method name
public static boolean implementsOrInheritsZeroArgMethod(org.codehaus.groovy.ast.ClassNode classNode, String methodName, List ignoreClasses)
public static String getFullName(org.codehaus.groovy.ast.ClassNode classNode)
classNode
- The class node
public static org.codehaus.groovy.ast.ClassNode getFurthestParent(org.codehaus.groovy.ast.ClassNode classNode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |