system/src/sc/lang/java/ModelUtil.java
public static Object resolveSrcTypeDeclaration(LayeredSystem sys, Object type, boolean cachedOnly, boolean srcOnly, Layer refLayer) {
      if (type instanceof ParamTypeDeclaration)
         type = ((ParamTypeDeclaration) type).getBaseType();
      if (ModelUtil.isCompiledClass(type) || type instanceof ParameterizedType) {
         String typeName = ModelUtil.getTypeName(type);
         if (sys != null) {
            Object res = cachedOnly ? sys.getCachedTypeDeclaration(typeName, null, null, false, true, refLayer, true) :
                                      sys.getSrcTypeDeclaration(typeName, null, true, false, srcOnly, refLayer, false);
            if (res != null)
               return res;
         }
      }
      return type;
   }
/**
    * In some cases, you might have a class which corresponds to an annotation layer or something.  Use this
    * method to ensure you get the most specific src type for that class name.  If cachedOnly is true, we
    * do not load the src file just to retrieve the src description.  If you are using the runtime descriptions of the type
    * this can be a lot faster.  But if you have loaded the src, it's best to use the most accurate type.
    */
In some cases, you might have a class which corresponds to an annotation layer or something.  Use this
method to ensure you get the most specific src type for that class name.  If cachedOnly is true, we
do not load the src file just to retrieve the src description.  If you are using the runtime descriptions of the type
this can be a lot faster.  But if you have loaded the src, it's best to use the most accurate type.
In some cases you might have a class which corresponds to an annotation layer or something . Use this method to ensure you get the most specific src type for that class name . If cachedOnly is true we do not load the src file just to retrieve the src description . If you are using the runtime descriptions of the type this can be a lot faster . But if you have loaded the src it ' s best to use the most accurate type .
public static Object resolveSrcTypeDeclaration(LayeredSystem sys, Object type, boolean cachedOnly, boolean srcOnly, Layer refLayer) {
      if (type instanceof ParamTypeDeclaration)
         type = ((ParamTypeDeclaration) type).getBaseType();
      if (ModelUtil.isCompiledClass(type) || type instanceof ParameterizedType) {
         String typeName = ModelUtil.getTypeName(type);
         if (sys != null) {
            Object res = cachedOnly ? sys.getCachedTypeDeclaration(typeName, null, null, false, true, refLayer, true) :
                                      sys.getSrcTypeDeclaration(typeName, null, true, false, srcOnly, refLayer, false);
            if (res != null)
               return res;
         }
      }
      return type;
   }
public static Object resolveSrcTypeDeclaration ( LayeredSystem sys , Object type , boolean cachedOnly , boolean srcOnly , Layer refLayer ) { if ( type instanceof ParamTypeDeclaration ) type = ( ( ParamTypeDeclaration ) type ) . getBaseType ( ) ; if ( ModelUtil . isCompiledClass ( type ) || type instanceof ParameterizedType ) { String typeName = ModelUtil . getTypeName ( type ) ; if ( sys != null ) { Object res = cachedOnly ? sys . getCachedTypeDeclaration ( typeName , null , null , false , true , refLayer , true ) : sys . getSrcTypeDeclaration ( typeName , null , true , false , srcOnly , refLayer , false ) ; if ( res != null ) return res ; } } return type ; }
In some cases, you might have a class which corresponds to an annotation layer or something.
In some cases you might have a class which corresponds to an annotation layer or something .