public int compare( IType t1, IType t2 ) { return t1.isInterface() ? 0 : 1; } } );
private boolean areAllTypesInterfaces( Set<IType> types ) { for( IType type: types ) { if( !type.isInterface() ) { return false; } } return true; }
private boolean areAllTypesInterfaces( Set<IType> types ) { for( IType type: types ) { if( !type.isInterface() ) { return false; } } return true; }
public int compare( IType t1, IType t2 ) { return t1.isInterface() ? 0 : 1; } } );
@Override public boolean isInterface() { return _type.isInterface(); }
@Override public boolean isInterface() { return _type.isInterface(); }
public boolean isInterface() { return getBoundingType().isInterface(); }
public boolean isInterface() { return getBoundingType().isInterface(); }
public IType[] getInterfaces() { if( getBoundingType().isInterface() ) { return new IType[] { getBoundingType() }; } return EMPTY_TYPE_ARRAY; }
public IType getSupertype() { if( !getBoundingType().isInterface() ) { return getBoundingType(); } return null; }
@Override public boolean isDefaultImpl() { // Default methods are public non-abstract instance methods declared in an interface. return ((getModifiers() & (java.lang.reflect.Modifier.ABSTRACT | java.lang.reflect.Modifier.PUBLIC | java.lang.reflect.Modifier.STATIC)) == java.lang.reflect.Modifier.PUBLIC) && getOwnersType().isInterface(); }
public IType[] getInterfaces() { if( getBoundingType().isInterface() ) { return new IType[] { getBoundingType() }; } return EMPTY_TYPE_ARRAY; }
public IType getSupertype() { if( !getBoundingType().isInterface() ) { return getBoundingType(); } return null; }
private boolean isConcreteInitializableType( IType type ) { return isInitializableType( type ) && !type.isAbstract() && !type.isInterface(); }
private boolean isConcreteInitializableType( IType type ) { return isInitializableType( type ) && !type.isAbstract() && !type.isInterface(); }
private IRMethodCallExpression callMethodDirectly( IRMethod method, IRExpression root, boolean special, IType owner, List<IRExpression> actualArgs ) { List<IRExpression> convertedArgs = new ArrayList<IRExpression>(); List<IRType> paramTypes = method.getAllParameterTypes(); for (int i = 0; i < actualArgs.size(); i++) { convertedArgs.add( IRArgConverter.castOrConvertIfNecessary( paramTypes.get( i ), actualArgs.get( i ) ) ); } IRMethodCallExpression result = buildMethodCall(method.getOwningIRType(), method.getName(), owner.isInterface(), method.getReturnType(), paramTypes, root, convertedArgs); if ( special ) { result.setSpecial( true ); } return result; }
public JavaFeatureManager(IRelativeTypeInfo type) { super(type, true, type.getOwnersType().isInterface() && type.getOwnersType().getSupertype() == null); } }
public JavaFeatureManager(IRelativeTypeInfo type) { super(type, true, type.getOwnersType().isInterface() && type.getOwnersType().getSupertype() == null); } }
public static IType getTypeToAutoInsert( IExpression rootExpression ) { IType featureType = ((MemberAccess)rootExpression).getPropertyInfo().getFeatureType().getTypeParameters()[0]; if( (featureType.isAbstract() || featureType.isInterface()) ) { IType concreteType = GosuParser.findImpl( featureType ); if( concreteType != null ) { featureType = concreteType; } } return featureType; }
public static IType getTypeToAutoInsert( IExpression rootExpression ) { IType featureType = ((MemberAccess)rootExpression).getPropertyInfo().getFeatureType().getTypeParameters()[0]; if( (featureType.isAbstract() || featureType.isInterface()) ) { IType concreteType = GosuParser.findImpl( featureType ); if( concreteType != null ) { featureType = concreteType; } } return featureType; }