system/src/sc/lang/java/ModelUtil.java
public static boolean needsTypeDeclarationParam(Class compClass, boolean innerClass) {
      Constructor[] ctors = RTypeUtil.getConstructors(compClass);
      if (ctors == null)
         return false;
      int ix = !innerClass ? 0 : 1;
      for (Constructor ctor:ctors) {
         Class[] subParamTypes = ctor.getParameterTypes();
         if (subParamTypes != null && subParamTypes.length > ix) {
            if (BodyTypeDeclaration.class.isAssignableFrom(subParamTypes[ix]))
               return true;
         }
      }
      return false;
   }
/** Returns true for classes which have a constructor that takes a BodyTypeDeclaration */
Returns true for classes which have a constructor that takes a BodyTypeDeclaration
Returns true for classes which have a constructor that takes a BodyTypeDeclaration
public static boolean needsTypeDeclarationParam(Class compClass, boolean innerClass) {
      Constructor[] ctors = RTypeUtil.getConstructors(compClass);
      if (ctors == null)
         return false;
      int ix = !innerClass ? 0 : 1;
      for (Constructor ctor:ctors) {
         Class[] subParamTypes = ctor.getParameterTypes();
         if (subParamTypes != null && subParamTypes.length > ix) {
            if (BodyTypeDeclaration.class.isAssignableFrom(subParamTypes[ix]))
               return true;
         }
      }
      return false;
   }
public static boolean needsTypeDeclarationParam ( Class compClass , boolean innerClass ) { Constructor [ ] ctors = RTypeUtil . getConstructors ( compClass ) ; if ( ctors == null ) return false ; int ix = ! innerClass ? 0 : 1 ; for ( Constructor ctor : ctors ) { Class [ ] subParamTypes = ctor . getParameterTypes ( ) ; if ( subParamTypes != null && subParamTypes . length > ix ) { if ( BodyTypeDeclaration . class . isAssignableFrom ( subParamTypes [ ix ] ) ) return true ; } } return false ; }
Returns true for classes which have a constructor that takes a BodyTypeDeclaration
Returns true for classes which have a constructor that takes a BodyTypeDeclaration