public Map<String, Property> getProperties( String type ) { return getTraits( type ); }
@Override protected final Map<String, Property> getUncachedTraits( String type ) { return inspectProperties( type ); }
Property property = getProperties( traverse.getClass().getName() ).get( name );
/** * Whether to exclude the given property name when searching for properties. * <p> * This can be useful when the convention or base class define properties that are * framework-specific, and should be filtered out from 'real' business model properties. * <p> * By default, excludes 'metaClass'. * * @return true if the property should be excluded, false otherwise */ @Override protected boolean isExcludedName( String name ) { if ( "metaClass".equals( name ) ) { return true; } return super.isExcludedName( name ); }
/** * Whether to exclude the given base type when searching up the model inheritance chain. * <p> * This can be useful when the convention or base class define properties that are * framework-specific, and should be filtered out from 'real' business model properties. * <p> * By default, excludes any base types from the <code>org.groovy.*</code> packages, as well as * those excluded by <code>BasePropertyStyle</code>. * * @return true if the property should be excluded, false otherwise */ @Override protected boolean isExcludedBaseType( Class<?> classToExclude ) { // (classToExclude might be null in the Groovy Console applet. We won't need this // after we can use .getTheClass) if ( classToExclude == null ) { return false; } String className = classToExclude.getName(); if ( className.startsWith( "org.groovy." ) ) { return true; } return super.isExcludedBaseType( classToExclude ); }
Property property = getProperties( traverse.getClass().getName() ).get( name );
@Override protected final Map<String, Property> getUncachedTraits( String type ) { return inspectProperties( type ); }
public Map<String, Property> getProperties( String type ) { return getTraits( type ); }