Examples of Scope


Examples of com.mozilla.grouperfish.naming.Scope

    public void testQueries() {
        assertNotNull(scope(NS).queries());
    }

    public void testResourceMap() {
        Scope ns = scope(NS);
        assertEquals(
                ns.documents(), ns.resourceMap(DocumentsResource.class));
        assertEquals(
                ns.queries(), ns.resourceMap(QueriesResource.class));
        assertEquals(
                ns.results(), ns.resourceMap(ResultsResource.class));
        assertEquals(
                ns.map(Type.CONFIGURATION_FILTER),
                ns.resourceMap(ConfigurationsResource.FilterConfigsResource.class));
        assertEquals(
                ns.map(Type.CONFIGURATION_TRANSFORM),
                ns.resourceMap(ConfigurationsResource.TransformConfigsResource.class));
    }
View Full Code Here

Examples of com.nimbusds.oauth2.sdk.Scope


  public void testResolveSimple()
    throws Exception {

    Scope scope = Scope.parse("openid");

    ClaimsRequest cr = ClaimsRequest.resolve(ResponseType.parse("code"), scope);

    System.out.println("Claims request for scope openid: " + cr.toJSONObject());
View Full Code Here

Examples of com.opensymphony.xwork2.inject.Scope

                        String name = child.getAttribute("name");
                        String impl = child.getAttribute("class");
                        String onlyStatic = child.getAttribute("static");
                        String scopeStr = child.getAttribute("scope");
                        boolean optional = "true".equals(child.getAttribute("optional"));
                        Scope scope = Scope.SINGLETON;
                        if ("default".equals(scopeStr)) {
                            scope = Scope.DEFAULT;
                        } else if ("request".equals(scopeStr)) {
                            scope = Scope.REQUEST;
                        } else if ("session".equals(scopeStr)) {
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.Scope

     * @return whether we should check a given node.
     */
    private boolean shouldCheck(final DetailAST aAST)
    {
        final DetailAST mods = aAST.findFirstToken(TokenTypes.MODIFIERS);
        final Scope declaredScope = ScopeUtils.getScopeFromMods(mods);
        final Scope scope =
            ScopeUtils.inInterfaceOrAnnotationBlock(aAST)
                ? Scope.PUBLIC : declaredScope;
        final Scope surroundingScope = ScopeUtils.getSurroundingScope(aAST);

        return scope.isIn(mScope)
            && ((surroundingScope == null) || surroundingScope.isIn(mScope))
            && ((mExcludeScope == null)
                || !scope.isIn(mExcludeScope)
                || ((surroundingScope != null)
                && !surroundingScope.isIn(mExcludeScope)));
    }
View Full Code Here

Examples of com.python.pydev.analysis.visitors.Scope

        this.monitor = monitor;
        this.current = current;
        this.nature = nature;
        this.moduleName = moduleName;
        this.document = document;
        this.scope = new Scope(this, nature, moduleName);
        if (current instanceof SourceModule) {
            this.currentLocalScope.getScopeStack().push(((SourceModule) current).getAst());
        }

        startScope(Scope.SCOPE_TYPE_GLOBAL, null); //initial scope - there is only one 'global'
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Scope

    }

    /** Generate runtime metamodel info for an attribute declaration or definition. */
    void generateAttributeMetamodel(final Tree.TypedDeclaration that, final boolean addGetter, final boolean addSetter) {
        //No need to define all this for local values
        Scope _scope = that.getScope();
        while (_scope != null) {
            //TODO this is bound to change for local decl metamodel
            if (_scope instanceof Declaration) {
                if (_scope instanceof Method)return;
                else break;
            }
            _scope = _scope.getContainer();
        }
        Declaration d = that.getDeclarationModel();
        if (d instanceof Setter) d = ((Setter)d).getGetter();
        final String pname = names.getter(d);
        if (!generatedAttributes.contains(d)) {
View Full Code Here

Examples of com.sampullara.mustache.Scope

        final ApplicationResource resource = applicationContext.getResource(path);
        return resource.getInputStream();
    }

    private static Scope buildScope(Request request){
        Scope scope = null;
        List<String> availableScopes = request.getAvailableScopes();
        for(int i = availableScopes.size() -1; i >= 0; --i){
            scope = null == scope
                    ? new Scope(request.getContext(availableScopes.get(i)))
                    : new Scope(request.getContext(availableScopes.get(i)), scope);
        }
        return scope;
    }
View Full Code Here

Examples of com.scratchdisk.script.Scope

    }
    return null;
  }

  public Scope createScope() {
    Scope scope = super.createScope();
    // Override global to point to the 'local' global scope ;)
    scope.put("global", ((RhinoScope) scope).getScope());
    return scope;
  }
View Full Code Here

Examples of com.stuffwithstuff.magpie.interpreter.Scope

    }

    protected Set<Entry<String, Multimethod>> findMultimethods(Context context, Obj matchingValue) {
      Map<String, Multimethod> matching = new TreeMap<String, Multimethod>();

      Scope scope = context.getModule().getScope();
      while (scope != null) {
        for(Entry<String, Multimethod> multimethod : scope.getMultimethods().entrySet()) {
          for(Callable method : multimethod.getValue().getMethods()) {
            if(isMatchingMethod(matchingValue, context, method)) {
              matching.put(multimethod.getKey(), multimethod.getValue());
              break;
            }
          } 
        }
        scope = scope.getParent();
      }
      return matching.entrySet();
    }
View Full Code Here

Examples of com.sun.faces.spi.ManagedBeanFactory.Scope

            }
            return null;
        }

        Object bean;
        Scope scope = managedBean.getScope();

        boolean scopeIsApplication;
        boolean scopeIsRequest;
        ExternalContext extContext = context.getExternalContext();
        if ((scopeIsApplication = (scope == Scope.APPLICATION)) ||
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.