system/src/sc/lang/java/Parameter.java
public static Parameter create(LayeredSystem sys, Object[] types, String[] names, ITypeParamContext ctx, ITypeDeclaration definedInType, JavaModel model) {
      if (types == null || types.length == 0)
          return null;
      Parameter curr = null, first = null;
      int i = 0;
      for (Object type:types) {
         Parameter next = new Parameter();
         if (type instanceof JavaType)
            next.setProperty("type", type);
         else if (type != null) {
            JavaType methType = JavaType.createFromParamType(sys, type, ctx, definedInType, model);
            next.setProperty("type", methType);
         }
         next.variableName = names[i++];
         if (curr == null)
            first = curr = next;
         else {
            curr.setProperty("nextParameter", next);
            curr = next;
         }
      }
      return first;
   }
// Creates a parameter list with the given types and names. The types can either be JavaType, Class, or TypeDeclaration
Creates a parameter list with the given types and names. The types can either be JavaType, Class, or TypeDeclaration
Creates a parameter list with the given types and names . The types can either be JavaType Class or TypeDeclaration
public static Parameter create(LayeredSystem sys, Object[] types, String[] names, ITypeParamContext ctx, ITypeDeclaration definedInType, JavaModel model) {
      if (types == null || types.length == 0)
          return null;
      Parameter curr = null, first = null;
      int i = 0;
      for (Object type:types) {
         Parameter next = new Parameter();
         if (type instanceof JavaType)
            next.setProperty("type", type);
         else if (type != null) {
            JavaType methType = JavaType.createFromParamType(sys, type, ctx, definedInType, model);
            next.setProperty("type", methType);
         }
         next.variableName = names[i++];
         if (curr == null)
            first = curr = next;
         else {
            curr.setProperty("nextParameter", next);
            curr = next;
         }
      }
      return first;
   }
public static Parameter create ( LayeredSystem sys , Object [ ] types , String [ ] names , ITypeParamContext ctx , ITypeDeclaration definedInType , JavaModel model ) { if ( types == null || types . length == 0 ) return null ; Parameter curr = null , first = null ; int i = 0 ; for ( Object type : types ) { Parameter next = new Parameter ( ) ; if ( type instanceof JavaType ) next . setProperty ( "type" , type ) ; else if ( type != null ) { JavaType methType = JavaType . createFromParamType ( sys , type , ctx , definedInType , model ) ; next . setProperty ( "type" , methType ) ; } next . variableName = names [ i ++ ] ; if ( curr == null ) first = curr = next ; else { curr . setProperty ( "nextParameter" , next ) ; curr = next ; } } return first ; }
Creates a parameter list with the given types and names.
Creates a parameter list with the given types and names .