Examples of JLocal


Examples of com.google.gwt.dev.jjs.ast.JLocal

    if (tracker == null) {
      tracker = new TempLocalTracker();
      localTrackers.put(type, tracker);
    }

    JLocal temp = null;
    if (reuseTemps) {
      /*
       * If the return is non-null, we now "own" the returned JLocal; it's
       * important to call tracker.useLocal() on the returned value (below).
       */
 
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JLocal

      JExpression newArg = replacer.accept(x.getArg());

      JExpression expressionReturn = expressionToReturn(newArg);

      // Now generate the appropriate expressions.
      JLocal tempLocal = getTempLocal(expressionReturn.getType());

      // t = x
      JLocalRef tempRef = new JLocalRef(program, x.getSourceInfo(), tempLocal);
      JBinaryOperation asg = new JBinaryOperation(program, x.getSourceInfo(),
          x.getType(), JBinaryOperator.ASG, tempRef, expressionReturn);
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JLocal

      if (!x.hasSideEffects()) {
        return x;
      }

      // Create a temp local
      JLocal tempLocal = getTempLocal(x.getType());

      // Create an assignment for this temp and add it to multi.
      JLocalRef tempRef = new JLocalRef(program, x.getSourceInfo(), tempLocal);
      JBinaryOperation asg = new JBinaryOperation(program, x.getSourceInfo(),
          x.getType(), JBinaryOperator.ASG, tempRef, x);
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JLocal

    return tempLocals.get(--localIndex);
  }

  private void pushTempLocal() {
    if (localIndex == tempLocals.size()) {
      JLocal newTemp = program.createLocal(null,
          ("$e" + localIndex).toCharArray(), program.getTypeJavaLangObject(),
          false, currentMethodBody);
      tempLocals.add(newTemp);
    }
    ++localIndex;
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JLocal

        return;
      }

      SourceInfo catchInfo = x.getCatchBlocks().get(0).getSourceInfo();

      JLocal exObj = popTempLocal();
      JLocalRef exRef = new JLocalRef(program, catchInfo, exObj);
      JBlock newCatchBlock = new JBlock(program, catchInfo);
      // $e = Exceptions.caught($e)
      JMethod caughtMethod = program.getIndexedMethod("Exceptions.caught");
      JMethodCall call = new JMethodCall(program, catchInfo, null, caughtMethod);
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JLocal

      return false;
    }

    @Override
    public boolean visit(JLocalRef ref, Context ctx) {
      JLocal target = ref.getLocal();
      rescue(target);
      return true;
    }
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JLocal

      JExpression newArg = replacer.accept(x.getArg());

      JExpression expressionReturn = expressionToReturn(newArg);

      // Now generate the appropriate expressions.
      JLocal tempLocal = createTempLocal(x.getSourceInfo(), expressionReturn.getType());

      // t = x
      JLocalRef tempRef = new JLocalRef(x.getSourceInfo(), tempLocal);
      JBinaryOperation asg =
          new JBinaryOperation(x.getSourceInfo(), x.getType(), JBinaryOperator.ASG, tempRef,
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JLocal

        if (!x.hasSideEffects()) {
          return x;
        }

        // Create a temp local
        JLocal tempLocal = createTempLocal(x.getSourceInfo(), x.getType());

        // Create an assignment for this temp and add it to multi.
        JLocalRef tempRef = new JLocalRef(x.getSourceInfo(), tempLocal);
        JBinaryOperation asg =
            new JBinaryOperation(x.getSourceInfo(), x.getType(), JBinaryOperator.ASG, tempRef, x);
View Full Code Here

Examples of org.ow2.util.ee.metadata.ejbjar.impl.struct.JLocal

                // on the bean class or interface or by means of the deployment
                // descriptor.

                // Build a local interface if no @Remote annotation, else add interface in the existing object
                if (jRemote == null) {
                    JLocal addedJLocal = new JLocal();
                    addedJLocal.addInterface(itfFound);
                    sessionBean.setLocalInterfaces(addedJLocal);
                } else {
                    jRemote.addInterface(itfFound);
                    sessionBean.setRemoteInterfaces(jRemote);
                }
View Full Code Here

Examples of org.ow2.util.ee.metadata.ejbjar.impl.struct.JLocal

                // Start with the local interfaces.
                IJLocal currentLocalInterfaces = beanClassAnnotationMetadata.getLocalInterfaces();
                IJLocal superLocalInterfaces = superMetadata.getLocalInterfaces();
                if (superLocalInterfaces != null) {
                    if (currentLocalInterfaces == null) {
                        currentLocalInterfaces = new JLocal();
                        beanClassAnnotationMetadata.setLocalInterfaces(currentLocalInterfaces);
                    }
                    for (String itf : superLocalInterfaces.getInterfaces()) {
                        if (!currentLocalInterfaces.getInterfaces().contains(itf)) {
                            currentLocalInterfaces.addInterface(itf);
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.