public IType getOwnersType() { return _container.getOwnersType(); }
public IType getOwnersType() { return _container.getOwnersType(); }
public IType getOwnersType() { return _container.getOwnersType(); }
public IType getOwnersType() { return _container.getOwnersType(); }
public MyPropertyRef( ITypeInfo owner, IPropertyInfo propInfo, IType whosaskin ) { _type = owner.getOwnersType(); _name = propInfo.getName(); _whosaskin = whosaskin; _owner = owner; }
public MyPropertyRef( ITypeInfo owner, IPropertyInfo propInfo, IType whosaskin ) { _type = owner.getOwnersType(); _name = propInfo.getName(); _whosaskin = whosaskin; _owner = owner; }
private List<? extends IMethodInfo> getMethods(ITypeInfo typeInfo) { if (typeInfo instanceof IRelativeTypeInfo) { return ((IRelativeTypeInfo)typeInfo).getMethods(typeInfo.getOwnersType()); } else { return typeInfo.getMethods(); } }
private List<? extends IMethodInfo> getMethods(ITypeInfo typeInfo) { if (typeInfo instanceof IRelativeTypeInfo) { return ((IRelativeTypeInfo)typeInfo).getMethods(typeInfo.getOwnersType()); } else { return typeInfo.getMethods(); } }
private boolean isBuiltinStaticEnumMethod( DynamicFunctionSymbol method ) { return method.isStatic() && method.getDeclaringTypeInfo().getOwnersType().isEnum() && (method.getDisplayName().equals( "values" ) || method.getDisplayName().equals( "valueOf")); }
private boolean areParametersEquivalent_Enhancement( DynamicFunctionSymbol dfs1, DynamicFunctionSymbol dfs2 ) { return !dfs1.isStatic() && dfs2.isStatic() && dfs1.getDeclaringTypeInfo().getOwnersType() instanceof IGosuEnhancement && areParametersEquivalent( dfs1, dfs2, ((IGosuEnhancement)dfs1.getDeclaringTypeInfo().getOwnersType()).getEnhancedType() ); }
private boolean mutualExclusiveStaticFilter( ITypeInfo beanInfo, IAttributedFeatureInfo descriptor ) { if( includeStaticMembers() == null ) { // Include both static and non-static members if null (a tri-state flag) return true; } if( beanInfo.getOwnersType() instanceof IMetaType || includeStaticMembers() ) { return descriptor.isStatic(); } return !descriptor.isStatic(); }
private boolean mutualExclusiveStaticFilter( ITypeInfo beanInfo, IAttributedFeatureInfo descriptor ) { if( includeStaticMembers() == null ) { // Include both static and non-static members if null (a tri-state flag) return true; } if( beanInfo.getOwnersType() instanceof IMetaType || includeStaticMembers() ) { return descriptor.isStatic(); } return !descriptor.isStatic(); }
public static List<IGenericTypeVariable> getTypeVarsForDFS( IDynamicFunctionSymbol dfs ) { ArrayList<IGenericTypeVariable> typeVars = new ArrayList<IGenericTypeVariable>(); if( !dfs.isStatic() && isEnhancementType( dfs.getGosuClass() ) ) { typeVars.addAll( Arrays.asList( getTypeVarsForEnhancement( dfs ) ) ); } if( dfs.getType().isGenericType() ) { typeVars.addAll( Arrays.asList( dfs.getType().getGenericTypeVariables() ) ); } else if( dfs.isConstructor() ) { IType declaringType = TypeLord.getPureGenericType( dfs.getDeclaringTypeInfo().getOwnersType() ); if( declaringType.isGenericType() ) { typeVars.addAll( Arrays.asList( declaringType.getGenericTypeVariables() ) ); } } return typeVars; }
private boolean isHidden( ITypeInfo beanInfo, IAttributedFeatureInfo feature ) { return feature.isHidden() || !feature.isScriptable() || hideDeprecated( feature ) || isInternal( feature ) || feature.getName().equals( "IntrinsicType" ) || (getFeatureFilter() != null && !getFeatureFilter().acceptFeature( beanInfo.getOwnersType(), feature )); }
private boolean isHidden( ITypeInfo beanInfo, IAttributedFeatureInfo feature ) { return feature.isHidden() || !feature.isScriptable() || hideDeprecated( feature ) || isInternal( feature ) || (getFeatureFilter() != null && !getFeatureFilter().acceptFeature( beanInfo.getOwnersType(), feature )); }
private void generateSuperCall() IType supertype = ((IFunctionStatement)_sourceOfIssue).getDynamicFunctionSymbol().getDeclaringTypeInfo().getOwnersType().getSupertype(); List<? extends IConstructorInfo> constructors = supertype.getTypeInfo().getConstructors(); if( constructors.size() == 1 )
private void verifyReified( boolean bValidOverrideFound, ParsedElement element, DynamicFunctionSymbol dfs ) { if( bValidOverrideFound ) { DynamicFunctionSymbol superDfs = dfs.getSuperDfs(); boolean bOverridesJavaMethod = IGosuClass.ProxyUtil.isProxy( superDfs.getDeclaringTypeInfo().getOwnersType() ); if( !bOverridesJavaMethod ) { // If overriding a Gosu function, be sure both functions are reified or neither verify( element, dfs.isReified() == superDfs.isReified(), Res.MSG_REIFIED_DONT_MATCH ); } else { warn( element, dfs.isReified() == superDfs.isReified(), Res.MSG_REIFIED_DONT_MATCH_JAVA, dfs.getName(), superDfs.getDeclaringTypeInfo().getOwnersType().getRelativeName() ); } } if( dfs.isReified() ) { verify( element, dfs.getType().isGenericType() || !dfs.isStatic() && dfs.getDeclaringTypeInfo().getOwnersType() instanceof IGosuEnhancement, Res.NOTHING_TO_REIFY ); } }
private void generateSuperCall() IType supertype = ((IFunctionStatement)_sourceOfIssue).getDynamicFunctionSymbol().getDeclaringTypeInfo().getOwnersType().getSupertype(); List<? extends IConstructorInfo> constructors = supertype.getTypeInfo().getConstructors(); if( constructors.size() == 1 )
/** * Assign the super dfs in terms of the deriving class's type parameters */ private void assignSuperDfs( IDynamicFunctionSymbol dfsDelegate, IGosuClass owner ) { IDynamicFunctionSymbol rawSuperDfs = dfsDelegate.getSuperDfs(); if( rawSuperDfs instanceof DynamicFunctionSymbol ) { while( rawSuperDfs.getBackingDfs() instanceof DynamicFunctionSymbol && rawSuperDfs.getBackingDfs() != rawSuperDfs ) { rawSuperDfs = rawSuperDfs.getBackingDfs(); } IType ownersType = rawSuperDfs.getDeclaringTypeInfo().getOwnersType(); if( !IGosuClass.ProxyUtil.isProxy( ownersType ) ) { IType superOwner = TypeLord.findParameterizedType( owner, ownersType ); if( superOwner == null ) { superOwner = ownersType; } setSuperDfs( ((DynamicFunctionSymbol)rawSuperDfs).getParameterizedVersion( (IGosuClass)superOwner ) ); } } }
/** * Assign the super dfs in terms of the deriving class's type parameters */ private void assignSuperDfs( IDynamicFunctionSymbol dfsDelegate, IGosuClass owner ) { IDynamicFunctionSymbol rawSuperDfs = dfsDelegate.getSuperDfs(); if( rawSuperDfs instanceof DynamicFunctionSymbol ) { while( rawSuperDfs.getBackingDfs() instanceof DynamicFunctionSymbol && rawSuperDfs.getBackingDfs() != rawSuperDfs ) { rawSuperDfs = rawSuperDfs.getBackingDfs(); } IType ownersType = rawSuperDfs.getDeclaringTypeInfo().getOwnersType(); if( !IGosuClass.ProxyUtil.isProxy( ownersType ) ) { IType superOwner = TypeLord.findParameterizedType( owner, ownersType ); if( superOwner == null ) { superOwner = ownersType; } setSuperDfs( ((DynamicFunctionSymbol)rawSuperDfs).getParameterizedVersion( (IGosuClass)superOwner ) ); } } }