public class AstPropertyResolveUtils extends java.lang.Object
Utilities for resolving property names from domain classes etc.
Modifiers | Name | Description |
---|---|---|
protected static java.util.Map<java.lang.String, java.util.Map<java.lang.String, org.codehaus.groovy.ast.ClassNode>> |
cachedClassProperties |
Type Params | Return Type | Name and description |
---|---|---|
|
private static void |
cachePropertiesForAssociationMetadata(java.util.Map<java.lang.String, org.codehaus.groovy.ast.ClassNode> cachedProperties, ClassPropertyFetcher propertyFetcher, java.lang.String associationMetadataName) |
|
private static java.util.Map<java.lang.String, org.codehaus.groovy.ast.ClassNode> |
getPropertiesFromCache(org.codehaus.groovy.ast.ClassNode classNode) |
|
public static java.util.List<java.lang.String> |
getPropertyNames(org.codehaus.groovy.ast.ClassNode classNode) Resolves the property names for the given class node |
|
public static org.codehaus.groovy.ast.ClassNode |
getPropertyType(org.codehaus.groovy.ast.ClassNode classNode, java.lang.String propertyName) Resolves the type of of the given property |
|
private static void |
populatePropertiesForClassNode(org.codehaus.groovy.ast.ClassNode classNode, java.util.Map<java.lang.String, org.codehaus.groovy.ast.ClassNode> cachedProperties, boolean isDomainClass, boolean allowAbstract) |
|
private static void |
populatePropertiesForInitialExpression(java.util.Map<java.lang.String, org.codehaus.groovy.ast.ClassNode> cachedProperties, org.codehaus.groovy.ast.expr.Expression initialExpression) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Resolves the property names for the given class node
classNode
- The class nodeResolves the type of of the given property
classNode
- The class nodepropertyName
- The property