public String getDescription() { return _delegate.getDescription(); }
public String getDescription() { return _delegate.getDescription(); }
public String getDescription() { return _source.getDescription(); }
public String getDescription() { return _source.getDescription(); }
protected static String deriveDescription(IPropertyInfo propertyInfo) { IType intrinsicType = propertyInfo.getOwnersType(); String description; try { ResourceBundle resourceBundle = ResourceBundle.getBundle( intrinsicType.getName(), Locale.getDefault(), TypeSystem.getGosuClassLoader().getActualLoader() ); description = resourceBundle.getString(propertyInfo.getName()); } catch (MissingResourceException e) { description = propertyInfo.getDescription(); } return description == null ? "" : description.replaceAll("\n", " "); }
private void genInterfacePropertyDecl( StringBuilder sb, IPropertyInfo pi ) { if( pi.isStatic() ) { genStaticProperty( pi, sb ); return; } if( !pi.isReadable() ) { return; } if( !(pi instanceof JavaBaseFeatureInfo) ) { // It is possible that a methodinfo on a java type originates outside of java. // E.g., enhancement methods. Gosu does not support extending these. return; } IType type = getGenericType( pi ); if( pi.getDescription() != null ) { sb.append( "\n/** " ).append( pi.getDescription() ).append( " */\n" ); } sb.append( " property get " ).append( pi.getName() ).append( "() : " ).append( type.getName() ).append( "\n" ); if( pi.isWritable( pi.getOwnersType() ) ) { sb.append( " property set " ).append( pi.getName() ).append( "( _proxy_arg_value : " ).append( type.getName() ).append( " )\n" ); } }
if( pi.getDescription() != null ) { sb.append( "\n/** " ).append( pi.getDescription() ).append( " */\n" );
if( pi.getDescription() != null ) sb.append( "\n/** " ).append( pi.getDescription() ).append( " */\n" );
if( pi.getDescription() != null ) sb.append( "\n/** " ).append( pi.getDescription() ).append( " */\n" );
if( pi.getDescription() != null ) sb.append( "\n/** " ).append( pi.getDescription() ).append( " */\n" );
if( pi.getDescription() != null ) sb.append( "\n/** " ).append( pi.getDescription() ).append( " */\n" );
public PropertyInfoBuilder like( IPropertyInfo prop ) { _isStatic = prop.isStatic(); _name = prop.getName(); _accessor = prop.getAccessor(); _readable = prop.isReadable(); _writable = prop.isWritable(); _type = prop.getFeatureType(); _description = prop.getDescription(); if ( prop.isDeprecated() ) { _deprecated = prop.getDeprecatedReason() == null ? "" : prop.getDeprecatedReason(); } else { _deprecated = null; } _annotations = prop.getAnnotations(); // todo dlank - any need to step through annotations and recreate 1-by-1? _locationInfo = prop.getLocationInfo(); return this; }
public PropertyInfoBuilder like( IPropertyInfo prop ) { _isStatic = prop.isStatic(); _name = prop.getName(); _accessor = prop.getAccessor(); _readable = prop.isReadable(); _writable = prop.isWritable(); _type = prop.getFeatureType(); _description = prop.getDescription(); if ( prop.isDeprecated() ) { _deprecated = prop.getDeprecatedReason() == null ? "" : prop.getDeprecatedReason(); } else { _deprecated = null; } _annotations = prop.getAnnotations(); // todo dlank - any need to step through annotations and recreate 1-by-1? if ( prop instanceof ILocationAwareFeature ) { ILocationAwareFeature locationAwareFeature = (ILocationAwareFeature) prop; _locationInfo = locationAwareFeature.getLocationInfo(); } return this; }