Examples of Var


Examples of clojure.lang.Var

                    {
                        Symbol namespaceSymbol = Symbol.create(symbol.getNamespace());

                        REQUIRE.invoke(namespaceSymbol);

                        Var var = Var.find(symbol);

                        final PlasticField varField = plasticClass.introduceField(Var.class, method.getName() + "Var").inject(var);

                        plasticClass.introduceMethod(desc).changeImplementation(new InstructionBuilderCallback()
                        {
View Full Code Here

Examples of com.caucho.quercus.env.Var

      String staticName = _staticName;
     
      if (cls != null)
        staticName = cls.getName() + "::" + staticName;

      Var var = env.getStaticVar(staticName);
     
      env.setValue(_var.getName(), var);

      if (! var.isset() && _initValue != null)
        var.set(_initValue.eval(env));

    }
    catch (RuntimeException e) {
      rethrow(e, RuntimeException.class);
    }
View Full Code Here

Examples of com.caucho.xpath.expr.Var

      if (_varKeys[i] == name)
  return _varValues[i];
    }

    if (_root._globals != null) {
      Var var = _root._globals.get(name);

      if (var != null)
        return var;
    }
View Full Code Here

Examples of com.dotcms.repackage.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 = var.getValue();
                    String jsType = var.getJsType();

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

Examples of com.google.javascript.jscomp.Scope.Var

      AstFunctionContents contents =
          getFunctionAnalysisResults(scope.getRootNode());
      if (contents != null) {
        for (String varName : contents.getEscapedVarNames()) {
          Var v = scope.getVar(varName);
          Preconditions.checkState(v.getScope() == scope);
          v.markEscaped();
        }

        for (Multiset.Entry<String> entry :
                 contents.getAssignedNameCounts().entrySet()) {
          Var v = scope.getVar(entry.getElement());
          Preconditions.checkState(v.getScope() == scope);
          if (entry.getCount() == 1) {
            v.markAssignedExactlyOnce();
          }
        }
      }
    }
View Full Code Here

Examples of com.google.javascript.jscomp.Scope.Var

                unknownType : jsDocParameter.getJSType();
            boolean inferred = paramType == null || paramType == unknownType;

            if (iifeArgumentNode != null && inferred) {
              String argumentName = iifeArgumentNode.getQualifiedName();
              Var argumentVar =
                  argumentName == null || scope.getParent() == null
                  ? null : scope.getParent().getVar(argumentName);
              if (argumentVar != null && !argumentVar.isTypeInferred()) {
                paramType = argumentVar.getType();
              }
            }

            if (paramType == null) {
              paramType = unknownType;
View Full Code Here

Examples of com.googlecode.goclipse.go.lang.model.Var

          link[0= h;

          return link;
        }
       
        Var v = cc1.getVarForName(parts[0], line);
        if (v != null) {
          h.node = v;
          h.region = wordRegion;
          h.text = word;
          h.type = "go methods";
          link[0] = h;
          return link;
        }

        // variable or local function call
      } else {
       
        // Is there a variable?
        Var v = cc1.getVarForName(word, line+1);
        if (v != null) {
          h.node = v;
          h.region = wordRegion;
          h.text = word;
          h.type = "go variable";
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.Var

{
    public static void main (String[] argv)
    {
        String BASE = "http://example/" ;
        BasicPattern bp = new BasicPattern() ;
        Var var_x = Var.alloc("x") ;
        Var var_z = Var.alloc("z") ;
       
        // ---- Build expression
        bp.add(new Triple(var_x, Node.createURI(BASE+"p"), var_z)) ;
        Op op = new OpBGP(bp) ;
        //Expr expr = ExprUtils.parse("?z < 2 ") ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.Var

       
        // See also ExProg1
       
        ElementGroup elg = new ElementGroup() ;
       
        Var varTitle = Var.alloc("title") ;
        Var varX = Var.alloc("x") ;
       
        Triple t1 = new Triple(varX, DC.title.asNode(),  varTitle) ;
        elg.addTriplePattern(t1) ;
       
        // Adds a filter.  Need to wrap variable in a NodeVar.
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.Var

       
        // Build pattern
       
        ElementGroup elg = new ElementGroup() ;
       
        Var varTitle = Var.alloc("title") ;
        Var varX = Var.alloc("x") ;
       
        Triple t1 = new Triple(varX, DC.title.asNode(),  varTitle) ;
        elg.addTriplePattern(t1) ;
       
        // Don't use bNodes for anon variables.  The conversion is done in parsing.
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.