Examples of Var


Examples of javax.constraints.Var

      String msg = "Failure to convert constraint "+getName() + " to VarBool. Not implemented.";
      p.log(msg);
      throw new RuntimeException(msg);
    }
   
    Var var = new javax.constraints.impl.Var(p,exp);
    javax.constraints.VarBool varBool = p.variableBool(getName());
    p.post(varBool, "=", var).post();
    return varBool;
 
View Full Code Here

Examples of net.sf.kpex.prolog.Var

  }

  private final Term makeVar(String s)
  {
    s = s.intern();
    Var X;
    long occ;
    if (s == ANONYMOUS)
    {
      occ = 0;
      X = new Var();
      s = X.toString();
    }
    else
    {
      X = (Var) dict.get(s);
      if (X == null)
      {
        occ = 1;
        X = new Var();
      }
      else
      {
        occ = ((Int) dict.get(X)).longValue();
        occ++;
View Full Code Here

Examples of net.sourceforge.temply.base.rules.Var

                    }
                }
            }
           
            for (XMLVar xmlVar : xmlRule.getXMLVar()) {
                rule.add(new Var(xmlVar.getName(), VarType.valueOf(xmlVar
                        .getType().toString()), xmlVar.getDefault()));
            }
           
            for (XMLResolve xmlResolve : xmlRule.getXMLResolve()) {
                Rule varRule = getRule(_xmlRules.get(xmlResolve.getRule()));
                if (varRule == null) {
                    log.error("Unknown rule " + xmlResolve.getRule()
                            + " referred in " + rule);
                    continue;
                }
                Var var = varRule.getVar(xmlResolve.getVar());
                if (var == null) {
                    log.error("Unknown var " + xmlResolve.getVar()
                            + " in rule " + xmlResolve.getRule()
                            + " referred in " + rule);
                    continue;
View Full Code Here

Examples of org.allspice.bytecode.Var

    ClassDef cd = makeClass() ;
   
    FieldDef fd = new FieldDef(Scope.PUBLIC,new TypeName(type),"foo") ;
    cd = cd.addField(fd) ;
    {
      Var x = new Var(1,new TypeName(type)) ;
      MethodDef md = new MethodDef(TypeName.VOID,"setFoo",x) ;
      md = md.addInstructions(
          new Load(new Var(0,new TypeName("TestClass"))),
          new Load(x),
          new Store(new FieldRef(cd.name,new TypeName(type),"foo")),
          new Return(TypeCode.VOID)
          ) ;
      cd = cd.addMethod(md) ;
    }
    {
      MethodDef md = new MethodDef(new TypeName(type),"getFoo") ;
      md = md.addInstructions(
          new Load(new Var(0,new TypeName("TestClass"))),
          new Load(new FieldRef(cd.name,new TypeName(type),"foo")),
          new Return(TypeCode.getType(type))
          ) ;
      cd = cd.addMethod(md) ;
    }
View Full Code Here

Examples of org.apache.commons.scxml.model.Var

        boolean exit = false;
        Iterator i = l.iterator();
        while (i.hasNext()) {
            Action a = (Action) i.next();
            if (a instanceof Var) {
                Var v = (Var) a;
                b.append(indent).append("<var name=\"").append(v.getName())
                        .append("\" expr=\"").append(v.getExpr()).append(
                                "\"/>\n");
            } else if (a instanceof Assign) {
                Assign asn = (Assign) a;
                b.append(indent).append("<assign");
                if (!SCXMLHelper.isStringEmpty(asn.getLocation())) {
View Full Code Here

Examples of org.apache.commons.scxml2.model.Var

     */
    private static void readVar(final XMLStreamReader reader, final Configuration configuration,
                                final Executable executable, final ActionsContainer parent)
            throws XMLStreamException {

        Var var = new Var();
        var.setName(readAV(reader, ATTR_NAME));
        var.setExpr(readAV(reader, ATTR_EXPR));
        readNamespaces(configuration, var);
        var.setParent(executable);
        if (parent != null) {
            parent.addAction(var);
        } else {
            executable.addAction(var);
        }
View Full Code Here

Examples of org.apache.commons.validator.Var

                // Loop through the field's variables.
                Iterator varsIterator = vars.keySet().iterator();
                while (varsIterator.hasNext())
                {
                    String varName = (String)varsIterator.next(); // TODO: escape?
                    Var var = (Var)vars.get(varName);
                    String varValue =
                        Resources.getVarValue(var, app, request, false);
                    String jsType = var.getJsType();

                    // skip requiredif variables field, fieldIndexed, fieldTest, fieldValue
                    if (varName.startsWith("field"))
                    {
                        continue;
View Full Code Here

Examples of org.aspectj.weaver.ast.Var

   * @see org.aspectj.weaver.Shadow#getKindedAnnotationVar(org.aspectj.weaver.UnresolvedType)
   */
  public Var getKindedAnnotationVar(UnresolvedType forAnnotationType) {
    ResolvedType annType = forAnnotationType.resolve(world);
    if (annotationVar.get(annType) == null) {
      Var v = ReflectionVar.createAtAnnotationVar(annType,this.annotationFinder);
      annotationVar.put(annType,v);
    }
    return (Var) annotationVar.get(annType);
  }
View Full Code Here

Examples of org.aspectj.weaver.ast.Var

   * @see org.aspectj.weaver.Shadow#getWithinAnnotationVar(org.aspectj.weaver.UnresolvedType)
   */
  public Var getWithinAnnotationVar(UnresolvedType forAnnotationType) {
    ResolvedType annType = forAnnotationType.resolve(world);
    if (withinAnnotationVar.get(annType) == null) {
      Var v = ReflectionVar.createWithinAnnotationVar(annType,this.annotationFinder);
      withinAnnotationVar.put(annType,v);
    }
    return (Var) withinAnnotationVar.get(annType);
  }
View Full Code Here

Examples of org.aspectj.weaver.ast.Var

   * @see org.aspectj.weaver.Shadow#getWithinCodeAnnotationVar(org.aspectj.weaver.UnresolvedType)
   */
  public Var getWithinCodeAnnotationVar(UnresolvedType forAnnotationType) {
    ResolvedType annType = forAnnotationType.resolve(world);
    if (withinCodeAnnotationVar.get(annType) == null) {
      Var v = ReflectionVar.createWithinCodeAnnotationVar(annType,this.annotationFinder);
      withinCodeAnnotationVar.put(annType,v);
    }
    return (Var) withinCodeAnnotationVar.get(annType);
  }
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.