Examples of VariableType


Examples of anvil.script.VariableType

  }


  public Any getAttribute(Context context, String attribute)
  {
    VariableType var = getVariable(attribute);
    if (var != null) {
      return var.getValue();
    }
    return UNDEFINED;
  }
View Full Code Here

Examples of anvil.script.VariableType

  }
 
 
  public Any setAttribute(Context context, String attribute, Any value)
  {
    VariableType var = getVariable(attribute);
    if (var != null) {
      var.setValue(value);
    }
    return value;
  }
View Full Code Here

Examples of anvil.script.VariableType

  }
   
 
  public Any checkAttribute(Context context, String attribute)
  {
    VariableType var = getVariable(attribute);
    if (var != null) {
      return var.getValue();
    }
    return UNDEFINED; 
  }
View Full Code Here

Examples of de.netallied.xsd2Cppsax.saxfwl.VariableType

        String baseClass = Utils.findCorrectBaseClass(version, classType);
        stream.println("class " + className + " : public " + baseClass);
        stream.println("{");
        stream.println("private:");
        VariableType member = classType.getMember();
        stream.println(member.getType() + " " + member.getName() + ";");
        stream.println();
        stream.println("public:");
        CtorType ctor = classType.getCtor();
        VariableType ctorParameter = ctor.getParameter();
        stream.println(className + "(" + ctorParameter.getType() + " " + ctorParameter.getName() + ")");
        List<InitlistType> initList = ctor.getInitlistList();
        printInitializationList(stream, initList, classType, version);
        stream.println("{}");
        stream.println();
        stream.println();
View Full Code Here

Examples of de.netallied.xsd2Cppsax.saxfwl.VariableType

     * Prints method parameter list.
     */
    protected void printMethodParameterList(PrintStream stream, MethodType method, SpecificType specific) {
        List<VariableType> parameterList = Utils.findCorrectParameterList(method, specific);
        for (int i = 0; i < parameterList.size(); i++) {
            VariableType para = parameterList.get(i);
            if (i == 0) {
                stream.print(" ");
            } else {
                stream.print(", ");
            }
            stream.print(para.getType() + " " + para.getName());
            if (i == parameterList.size() - 1) {
                stream.print(" ");
            }
        }
    }
View Full Code Here

Examples of de.netallied.xsd2Cppsax.saxfwl.VariableType

            stream.println(codeLine);
        }
        stream.print("return " + classType.getMember().getName() + "->" + method.getName() + "(");
        List<VariableType> paraList = method.getParameterList();
        for (int i = 0; i < paraList.size(); i++) {
            VariableType para = paraList.get(i);
            printParaPassing(stream, i, para);
        }
        stream.println(");");

        stream.println("}");
View Full Code Here

Examples of de.netallied.xsd2Cppsax.saxfwl.VariableType

    protected void printSaxVirtualFunctionTest(PrintStream stream, Version version, MethodType method,
            SpecificType specific) {
        stream.print("SaxVirtualFunctionTest" + version.getVersion() + "(" + specific.getName() + "(");
        List<VariableType> paraList = Utils.findCorrectParameterList(method, specific);
        for (int i = 0; i < paraList.size(); i++) {
            VariableType para = paraList.get(i);
            printParaPassing(stream, i, para);
        }
        stream.println("));");
    }
View Full Code Here

Examples of dk.brics.string.intermediate.VariableType

        // handle only fields declared in application classes
        if (!reference.getField().getDeclaringClass().isApplicationClass()) {
            return null;
        }

        VariableType type = factory.fromSootType(reference.getType());
        Variable var = factory.createVariable(type);
        Field field = factory.getField(reference.getField());
        factory.addStatement(new FieldReference(field, var));
       
        return var;
View Full Code Here

Examples of dk.brics.string.intermediate.VariableType

  }
 
  public Field getField(SootField sootField) {
    Field field = fields.get(sootField);
    if (field == null) {
      VariableType type = jt.fromSootType(sootField.getType());
      field = application.createField(type, sootField.isStatic());
      fields.put(sootField, field);
    }
    return field;
  }
View Full Code Here

Examples of dk.brics.string.intermediate.VariableType

 
  @Override
  public Variable caseArrayRef(ArrayRef v, ValueBox box) {
    // read something from an array
    Variable arrayObject = translateExpression(v.getBaseBox());
    VariableType innerType = getType(v.getType());
   
    if (innerType == VariableType.NONE)
      return getNothing();
   
    Variable result = makeVariable(innerType);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.