Examples of Scope


Examples of org.lilystudio.javascript.scope.Scope

  public FunctionLiteral(Node node, ScriptOrFnNode root, Scope scope) {
    super(root.getFunctionNode(node.getIntProp(Node.FUNCTION_PROP, -1))
        .getLineno());
    FunctionNode fnNode = root.getFunctionNode(node.getIntProp(
        Node.FUNCTION_PROP, -1));
    fnScope = new Scope(scope);

    if (fnNode.getFunctionName().length() > 0) {
      name = scope.addIdentifier(fnNode.getFunctionName());
    }
View Full Code Here

Examples of org.martinlaw.bo.Scope

  public void testCaseStatusMaintenanceRouting() throws WorkflowException {
    //testTransactionalRouting("CaseStatusMaintenanceDocument");
    Type status = new Status();
    String statusText = "deadlock";
    status.setName(statusText);
    Scope statusScope = new Scope();
    statusScope.setQualifiedClassName("org.martinlaw.Aclass");
    status.getScope().add(statusScope);
    try {
      testMaintenanceRoutingInitToFinal(getDocTypeName(), status);
      Map<String, Object> params = new HashMap<String, Object>();
      params.put("name", statusText);
View Full Code Here

Examples of org.moxie.Scope

   
    private void createDirectories(NewProject project, MaxmlMap map, Key key) {
      List<String> dirs = map.getStrings(key.name(), Arrays.asList(new String [0]));
      for (String scopedDir : dirs) {
        String s = scopedDir.substring(0, scopedDir.indexOf(' ')).trim();
        Scope scope = Scope.fromString(s);
        if (scope.isValidSourceScope()) {
          String folder = StringUtils.stripQuotes(scopedDir.substring(s.length() + 1).trim());
            File file = new File(project.dir, folder);
            file.mkdirs();
        } else {
          log("Illegal " + key.name() + " scope: " + s);
View Full Code Here

Examples of org.mozilla.javascript.ast.Scope

        root.visit(new NodeVisitor() {

            public boolean visit(AstNode node) {
               
                Scope scope = node.getEnclosingScope();
                List<Integer> scopePath = new ArrayList<Integer>();
                while (scope != null) {
                    scopePath.add(scope.getAbsolutePosition());
                    scope = scope.getParentScope();
                }

                Collections.reverse(scopePath);
                String path = WGUtils.serializeCollection(scopePath, ".");
               
                TMLScriptScope tmlScriptScope = _scopes.get(path);
                if (tmlScriptScope == null && node.getEnclosingScope() != null) {                   
                    tmlScriptScope = new TMLScriptScope(path, node.getEnclosingScope().getAbsolutePosition(), node.getEnclosingScope().getLength());                       
                    _scopes.put(path, tmlScriptScope);
                }
               
                if (node instanceof VariableDeclaration || node instanceof ExpressionStatement) {

                   
                    if (node instanceof VariableDeclaration) {
                        VariableDeclaration declaration = (VariableDeclaration) node;
                        String source = declaration.toSource();
                        String name = source.substring(0, source.indexOf("=")).trim();
                        name = name.substring(name.indexOf("var") + 3).trim();
                        String value = source.substring(source.indexOf("=") + 1).trim();
                       
                        TMLScriptVariableDeclaration tmlScriptVarDec = new TMLScriptVariableDeclaration(tmlScriptScope, name);
                        tmlScriptVarDec.setValue(value);
                        tmlScriptVarDec.setOffset(declaration.getAbsolutePosition());
                       
                        tmlScriptScope.getVariableDeclarations().add(tmlScriptVarDec);
                    } else if (node instanceof ExpressionStatement) {
                        ExpressionStatement expressionStatement = (ExpressionStatement) node;
                        String source = expressionStatement.getExpression().toSource();
                        if (source != null && source.contains("=")) {
                            String name = source.substring(0, source.indexOf("=")).trim();
                            String value = source.substring(source.indexOf("=") + 1).trim();
                           
                            TMLScriptVariableDeclaration tmlScriptVarDec = new TMLScriptVariableDeclaration(tmlScriptScope, name);
                            tmlScriptVarDec.setValue(value);
                            tmlScriptVarDec.setOffset(expressionStatement.getAbsolutePosition());
                            tmlScriptVarDec.setTmlVariable(true);
                           
                            tmlScriptScope.getVariableDeclarations().add(tmlScriptVarDec);
                        }
                    }
                   
                }               
                return true;
            }
        });
       
        // second parsing run - compute type of variables
        Iterator<TMLScriptScope> scopes = _scopes.values().iterator();
        while (scopes.hasNext()) {
            TMLScriptScope scope = scopes.next();
            Iterator<TMLScriptVariableDeclaration> vars = scope.getVariableDeclarations().iterator();
            while (vars.hasNext()) {
                final TMLScriptVariableDeclaration fVar = vars.next();
                Map<String,TMLScriptVariableDeclaration> visibleVars = retrieveVisibleVars(fVar);               
               
               
View Full Code Here

Examples of org.nasutekds.server.admin.std.meta.LocalDBVLVIndexCfgDefn.Scope

   * Returns the scope of the VLV index as it appears on the panel.
   * @return the scope of the VLV index as it appears on the panel.
   */
  protected Scope getScope()
  {
    Scope scope;
    if (baseObject.isSelected())
    {
      scope = Scope.BASE_OBJECT;
    }
    else if (singleLevel.isSelected())
View Full Code Here

Examples of org.oasisopen.sca.annotation.Scope

        ConversationAttributes conversation = clazz.getAnnotation(ConversationAttributes.class);
        if (conversation == null) {
            return;
        }
        Scope scope = clazz.getAnnotation(Scope.class);
        if (scope == null) {
            // implicitly assume conversation
            type.setJavaScope(org.apache.tuscany.sca.implementation.java.JavaScopeImpl.CONVERSATION);
        } else if (conversation != null) {
            long maxAge;
View Full Code Here

Examples of org.openquark.cal.compiler.Scope

           
            String displayName = entry.getDisplayName();
            String label = entry.getLabel();
           
            int scopeNum;
            Scope scope = entry.getScope();
            if (scope.isPrivate()) {
                scopeNum = 0;
            } else if (scope.isProtected()) {
                scopeNum = 1;
            } else if (scope.isPublic()) {
                scopeNum = 2;
            } else {
                throw new IllegalStateException("Invalid scope: " + scope);
            }
           
View Full Code Here

Examples of org.openrdf.query.algebra.StatementPattern.Scope

  @Override
  public Object visit(ASTGraphGraphPattern node, Object data)
    throws VisitorException
  {
    Var oldContext = graphPattern.getContextVar();
    Scope oldScope = graphPattern.getStatementPatternScope();

    ValueExpr newContext = (ValueExpr)node.jjtGetChild(0).jjtAccept(this, null);

    graphPattern.setContextVar(valueExpr2Var(newContext));
    graphPattern.setStatementPatternScope(Scope.NAMED_CONTEXTS);
View Full Code Here

Examples of org.osoa.sca.annotations.Scope

     
        ConversationAttributes conversation = clazz.getAnnotation(ConversationAttributes.class);
        if (conversation == null) {
            return;
        }
        Scope scope = clazz.getAnnotation(Scope.class);
        if (scope == null) {
            // implicitly assume conversation
            type.setJavaScope(org.apache.tuscany.sca.implementation.java.impl.JavaScopeImpl.CONVERSATION);
        } else if (conversation != null) {
            long maxAge;
View Full Code Here

Examples of org.platformlayer.Scope

  @Override
  public ProjectAuthorization get() {
    ProjectAuthorization authentication = null;

    Scope scope = scopeProvider.get();
    if (scope != null) {
      authentication = scope.get(ProjectAuthorization.class);
    }

    return authentication;
  }
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.