Examples of Scope


Examples of com.sun.source.tree.Scope

    protected JCBlock processElement(BlockTree tree, final CompilationUnitTree cut, Tree scopeTree) {
        if (tree == null) {
            return null;
        }
        boolean dummyInjected = false;
        Scope scope = null;
        if (scopeTree instanceof MethodTree) {
            if (!((MethodTree) scopeTree).getParameters().isEmpty()) { //work-around
                final JCMethodInvocation dummyMi = getMethodInvoc("System.out.print", StringUtils.EMPTY);
                final JCStatement dummyStmt = tm.Exec(dummyMi);
                final JCMethodDecl mt = (JCMethodDecl) scopeTree;
View Full Code Here

Examples of com.sun.tools.javac.code.Scope

        if (bounds.head.tag == TYPEVAR)
            // error condition, recover
                bc.erasure_field = syms.objectType;
            else
                bc.erasure_field = erasure(bounds.head);
            bc.members_field = new Scope(bc);
        ClassType bt = (ClassType)bc.type;
        bt.allparams_field = List.nil();
        if (supertype != null) {
            bt.supertype_field = supertype;
            bt.interfaces_field = bounds;
View Full Code Here

Examples of com.volantis.mcs.build.parser.Scope

            // Add any extra attributes.
            if ((value = pi.getValue("attribute")) != null) {
                String name = value;

                Scope scope = parser.getScope();
                AttributeDefinition definition = scope.addAttributeDefinition(
                        name);
                definition.setType(pi.getValue("type"));
                definition.setUse(pi.getValue("use"));

                List attributes = attributesStructureInfo.getAttributes();
View Full Code Here

Examples of freemarker.core.Scope

            TemplateModel model)
    throws TemplateException {
        if (!(model instanceof Scope)) {
            throw new TemplateException("Expecting scope on left of ?resolve built-in", env);
        }
        final Scope scope = (Scope) model;
        return new TemplateMethodModel() {
            @Parameters("key")
            public Object exec(List args) throws TemplateModelException {
                return scope.resolveVariable((String) args.get(0));
            }
        };
    }
View Full Code Here

Examples of jdolly.Scope

        if (i < args.length) {
          int maxPackage = Integer.parseInt(args[i++]);
          int maxClass = Integer.parseInt(args[i++]);
          int maxMethod = Integer.parseInt(args[i++]);
          int maxField = Integer.parseInt(args[i++]);
          scope = new Scope(maxPackage, maxClass, maxMethod, maxField);
        } else
          System.err
              .println("-scope requires number of packages, classes, methods, and fields");
        if (vflag)
          System.out.println("Scope= " + scope.getMaxPackage() + " "
View Full Code Here

Examples of jodd.petite.scope.Scope

  /**
   * Returns scoped proxy bean if injection scopes are mixed on some injection point.
   * May return <code>null</code> if mixing scopes is not detected.
   */
  public Object lookupValue(PetiteContainer petiteContainer, BeanDefinition targetBeanDefinition, BeanDefinition refBeanDefinition) {
    Scope targetScope = targetBeanDefinition.scope;
    Scope refBeanScope = refBeanDefinition.scope;

    boolean detectMixedScopes = petiteContainer.getConfig().isDetectMixedScopes();
    boolean wireScopedProxy = petiteContainer.getConfig().isWireScopedProxy();

    // when target scope is null then all beans can be injected into it
View Full Code Here

Examples of net.sourceforge.htmlunit.corejs.javascript.ast.Scope

        if (Token.printTrees) {
            sb.append(Token.name(type));
            if (this instanceof Name) {
                sb.append(' ');
                sb.append(getString());
                Scope scope = getScope();
                if (scope != null) {
                    sb.append("[scope: ");
                    appendPrintId(scope, printIds, sb);
                    sb.append("]");
                }
View Full Code Here

Examples of org.allspice.bytecode.Scope

      EvaluationContext context,FileUnitInfo fuinfo,
      Collection<Exception> errors) throws CompilerException {
    Collection<TypeName> vars = StdJavaExpressions.createParameters(fuinfo,mdecl.parameters);
    final TypeName retType = fuinfo.getFullQualified(mdecl.returnType);
    final FieldAttrs fieldAttrs = mdecl.fieldAttrs;
    Scope scope =
        fieldAttrs.visibility == Visibility.PUBLIC ? Scope.PUBLIC :
        fieldAttrs.visibility == Visibility.PROTECTED ? Scope.PROTECTED :
        fieldAttrs.visibility == Visibility.PRIVATE ? Scope.PRIVATE :
        Scope.PROTECTED ;
    MethodDef mdef = new MethodDef(scope,retType,mdecl.name,vars) ;
View Full Code Here

Examples of org.apache.axis.constants.Scope

        try {
            // Instantiate the emitter
            Emitter emitter = createEmitter();

            //extract the scope
            Scope scope = Scope.getScope(deployScope, null);
            if (scope != null) {
                emitter.setScope(scope);
            } else if (deployScope.length() == 0
                    || "none".equalsIgnoreCase(deployScope)) {
                /* leave default (null, or not-explicit) */;
 
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.Scope

                    physicalSize = tmpltStore.getPhysicalSize();
                } else {
                    s_logger.warn("No entry found in template_store_ref for template id: " + template.getId() + " and image store id: " + ds.getId()
                            + " at the end of registering template!");
                }
                Scope dsScope = ds.getScope();
                if (dsScope.getScopeType() == ScopeType.ZONE) {
                    if (dsScope.getScopeId() != null) {
                        UsageEventUtils.publishUsageEvent(etype, template.getAccountId(), dsScope.getScopeId(), template.getId(), template.getName(), null,
                                null, physicalSize, template.getSize(), VirtualMachineTemplate.class.getName(), template.getUuid());
                    }
                    else{
                        s_logger.warn("Zone scope image store " + ds.getId() + " has a null scope id");
                    }
                } else if (dsScope.getScopeType() == ScopeType.REGION) {
                    // publish usage event for region-wide image store using a -1 zoneId for 4.2, need to revisit post-4.2
                    UsageEventUtils.publishUsageEvent(etype, template.getAccountId(), -1, template.getId(), template.getName(), null, null,
                            physicalSize, template.getSize(), VirtualMachineTemplate.class.getName(), template.getUuid());
                }
                _resourceLimitMgr.incrementResourceCount(accountId, ResourceType.secondary_storage, template.getSize());
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.