Package org.codehaus.groovy.ast.tools
Class BeanUtils
java.lang.Object
org.codehaus.groovy.ast.tools.BeanUtils
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddPseudoProperties(ClassNode origType, ClassNode cNode, List<PropertyNode> result, Set<String> names, boolean includeStatic, boolean includePseudoGetters, boolean includePseudoSetters) static voidaddPseudoProperties(ClassNode origType, ClassNode cNode, List<PropertyNode> result, Set<String> names, boolean includeStatic, boolean includePseudoGetters, boolean includePseudoSetters, boolean traverseSuperClasses) static List<PropertyNode>getAllProperties(ClassNode type, boolean includeSuperProperties, boolean includeStatic, boolean includePseudoGetters) Get all properties including JavaBean pseudo properties matching getter conventions.static List<PropertyNode>getAllProperties(ClassNode type, boolean includeSuperProperties, boolean includeStatic, boolean includePseudoGetters, boolean includePseudoSetters, boolean superFirst) Get all properties including JavaBean pseudo properties matching JavaBean getter or setter conventions.
- 
Constructor Details- 
BeanUtilspublic BeanUtils()
 
- 
- 
Method Details- 
getAllPropertiespublic static List<PropertyNode> getAllProperties(ClassNode type, boolean includeSuperProperties, boolean includeStatic, boolean includePseudoGetters) Get all properties including JavaBean pseudo properties matching getter conventions.- Parameters:
- type- the ClassNode
- includeSuperProperties- whether to include super properties
- includeStatic- whether to include static properties
- includePseudoGetters- whether to include JavaBean pseudo (getXXX/isYYY) properties with no corresponding field
- Returns:
- the list of found property nodes
 
- 
getAllPropertiespublic static List<PropertyNode> getAllProperties(ClassNode type, boolean includeSuperProperties, boolean includeStatic, boolean includePseudoGetters, boolean includePseudoSetters, boolean superFirst) Get all properties including JavaBean pseudo properties matching JavaBean getter or setter conventions.- Parameters:
- type- the ClassNode
- includeSuperProperties- whether to include super properties
- includeStatic- whether to include static properties
- includePseudoGetters- whether to include JavaBean pseudo (getXXX/isYYY) properties with no corresponding field
- includePseudoSetters- whether to include JavaBean pseudo (setXXX) properties with no corresponding field
- superFirst- are properties gathered first from parent classes
- Returns:
- the list of found property nodes
 
- 
addPseudoProperties
- 
addPseudoProperties
 
-