@Override public boolean isStatic() { return _terminalProperty.isStatic(); }
public boolean isStatic() { return _delegate.isStatic(); }
private boolean isStatic( IPropertyInfo pi ) { return pi != null && pi.isStatic(); }
private boolean isStatic( IPropertyInfo pi ) { return pi != null && pi.isStatic(); }
public boolean isStatic() { return _source.isStatic(); }
@Override public boolean isStatic() { return _terminalProperty.isStatic(); }
public boolean isStatic() { return _delegate.isStatic(); }
public boolean isStatic() { return _source.isStatic(); }
@Override public List<IType> getFullArgTypes() { ArrayList<IType> lst = new ArrayList<IType>(); if (!_pi.isStatic()) { lst.add(_pi.getOwnersType()); } return lst; }
public boolean isStatic() { return !getSource().isStatic(); }
public boolean isStatic() { return !getSource().isStatic(); }
@Override public List<IType> getFullArgTypes() { ArrayList<IType> lst = new ArrayList<IType>(); if (!_pi.isStatic()) { lst.add(_pi.getOwnersType()); } return lst; }
@Override protected Object evaluate(Iterator args) { Object ctx = null; if (!_pi.isStatic()) { ctx = args.next(); } return _pi.getAccessor().getValue(ctx); }
@Override protected Object evaluate(Iterator args) { Object ctx = null; if (!_pi.isStatic()) { ctx = args.next(); } return _pi.getAccessor().getValue(ctx); }
private void genProperty( IPropertyInfo pi, StringBuilder sb, IJavaType type ) { if( pi.isPrivate() ) { return; } if( pi.isStatic() ) { genStaticProperty( pi, sb ); } else { genMemberProperty( pi, sb, type ); } }
public static Object getStaticProperty( IType type, String propertyName ) { ensureTypeIsValid( type ); IPropertyInfo propertyInfo = findProperty( type, propertyName ); if( propertyInfo != null && propertyInfo.isStatic() ) { return propertyInfo.getAccessor().getValue( type ); } else { throw new IllegalArgumentException( "Unable to find a static property on " + type.getName() + " with name " + propertyName ); } }
public static Object getStaticProperty( IType type, String propertyName ) { ensureTypeIsValid( type ); IPropertyInfo propertyInfo = findProperty( type, propertyName ); if( propertyInfo != null && propertyInfo.isStatic() ) { return propertyInfo.getAccessor().getValue( type ); } else { throw new IllegalArgumentException( "Unable to find a static property on " + type.getName() + " with name " + propertyName ); } }
public static void setStaticProperty( IType type, String propertyName, Object value ) { ensureTypeIsValid( type ); IPropertyInfo propertyInfo = findProperty( type, propertyName ); if( propertyInfo != null && propertyInfo.isStatic() ) { IType iType = propertyInfo.getFeatureType(); propertyInfo.getAccessor().setValue( type, coerce( value, iType ) ); } else { throw new IllegalArgumentException( "Unable to find a static property on " + type.getName() + " with name " + propertyName ); } }
private static void maybePushEnumTypes(ISymbolTable symbolTable, IType returnType) { if( !returnType.isEnum() ) { return; } for(IPropertyInfo pi : returnType.getTypeInfo().getProperties() ) { if( pi.isStatic() && pi.isPublic() ) { symbolTable.putSymbol( new Symbol(pi.getName(), pi.getFeatureType(), null) ); } } }
private static void maybePushEnumTypes(ISymbolTable symbolTable, IType returnType) { if( !returnType.isEnum() ) { return; } for(IPropertyInfo pi : returnType.getTypeInfo().getProperties() ) { if( pi.isStatic() && pi.isPublic() ) { symbolTable.putSymbol( new Symbol(pi.getName(), pi.getFeatureType(), null) ); } } }