system/src/sc/lang/java/ModelUtil.java
public static boolean needsOwnClass(Object type, boolean checkComponents) {
      if (type instanceof ITypeDeclaration) {
         ITypeDeclaration typeDef = (ITypeDeclaration) type;
         if (typeDef instanceof TypeDeclaration && ((TypeDeclaration) typeDef).getEnclosingIType() == null)
            return true;
         return (typeDef.needsOwnClass(checkComponents));
      }
      return true;
   }
/** Returns false if this type is optimized away.  i.e. an object instance which contains no methods or fields, just initializations which we can apply at runtime on the base class */
Returns false if this type is optimized away.
Returns false if this type is optimized away .
public static boolean needsOwnClass(Object type, boolean checkComponents) {
      if (type instanceof ITypeDeclaration) {
         ITypeDeclaration typeDef = (ITypeDeclaration) type;
         if (typeDef instanceof TypeDeclaration && ((TypeDeclaration) typeDef).getEnclosingIType() == null)
            return true;
         return (typeDef.needsOwnClass(checkComponents));
      }
      return true;
   }
public static boolean needsOwnClass ( Object type , boolean checkComponents ) { if ( type instanceof ITypeDeclaration ) { ITypeDeclaration typeDef = ( ITypeDeclaration ) type ; if ( typeDef instanceof TypeDeclaration && ( ( TypeDeclaration ) typeDef ) . getEnclosingIType ( ) == null ) return true ; return ( typeDef . needsOwnClass ( checkComponents ) ) ; } return true ; }
Returns false if this type is optimized away.
Returns false if this type is optimized away .