system/src/sc/lang/java/ConstructorPropInfo.java
public Expression wrapInitExpr(String propName, Expression expr) {
      if (getMethodName != null && getMethodName.length() > 0) {
         SemanticNodeList<Expression> args = new SemanticNodeList<Expression>();
         args.add(StringLiteral.create(typeName));
         args.add(StringLiteral.create(propName));
         args.add(expr);
         IdentifierExpression getMethod = IdentifierExpression.createMethodCall(args, getMethodName);
         JavaType propType = getJavaTypeForProp(propName);
         CastExpression cast = CastExpression.create(propType, getMethod);
         return cast;
      }
      return expr;
   }
/** For top-level page objects we want to inject property values from the URL. We do this by adding a wrapper expression around
    * the initializer as set by the constructorPropGet */
For top-level page objects we want to inject property values from the URL. We do this by adding a wrapper expression around
the initializer as set by the constructorPropGet
For top - level page objects we want to inject property values from the URL . We do this by adding a wrapper expression around the initializer as set by the constructorPropGet
public Expression wrapInitExpr(String propName, Expression expr) {
      if (getMethodName != null && getMethodName.length() > 0) {
         SemanticNodeList<Expression> args = new SemanticNodeList<Expression>();
         args.add(StringLiteral.create(typeName));
         args.add(StringLiteral.create(propName));
         args.add(expr);
         IdentifierExpression getMethod = IdentifierExpression.createMethodCall(args, getMethodName);
         JavaType propType = getJavaTypeForProp(propName);
         CastExpression cast = CastExpression.create(propType, getMethod);
         return cast;
      }
      return expr;
   }
public Expression wrapInitExpr ( String propName , Expression expr ) { if ( getMethodName != null && getMethodName . length ( ) > 0 ) { SemanticNodeList < Expression > args = new SemanticNodeList < Expression > ( ) ; args . add ( StringLiteral . create ( typeName ) ) ; args . add ( StringLiteral . create ( propName ) ) ; args . add ( expr ) ; IdentifierExpression getMethod = IdentifierExpression . createMethodCall ( args , getMethodName ) ; JavaType propType = getJavaTypeForProp ( propName ) ; CastExpression cast = CastExpression . create ( propType , getMethod ) ; return cast ; } return expr ; }
For top-level page objects we want to inject property values from the URL.
For top - level page objects we want to inject property values from the URL .