Examples of translateTo()


Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

        if (fl != null) {
      _falseList.append(fl);
        }
    }
    else {
        ltype.translateTo(classGen, methodGen, _type)
    }
      }
  }
    }
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {
  final Type ltype = _left.getType();
  _left.translate(classGen, methodGen);
  if (_type.identicalTo(ltype) == false) {
      _left.startIterator(classGen, methodGen);
      ltype.translateTo(classGen, methodGen, _type);
  }
    }
}
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

      arg.startIterator(classGen, methodGen);
      targ = arg.getType();
  }

  if (!targ.identicalTo(Type.String)) {
      targ.translateTo(classGen, methodGen, Type.String);
  }
    }
}
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

    final Expression exp = argument(i);
                Type expType = exp.getType();
    exp.translate(classGen, methodGen);
    // Convert the argument to its Java type
    exp.startIterator(classGen, methodGen);
    expType.translateTo(classGen, methodGen, paramTypes[i]);
                paramTemp[i] =
                    methodGen.addLocalVariable("function_call_tmp"+i,
                                               expType.toJCType(),
                                               il.getEnd(), null);
                il.append(expType.STORE(paramTemp[i].getIndex()));
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

      arg.startIterator(classGen, methodGen);
      targ = arg.getType();
  }

  if (!targ.identicalTo(Type.Real)) {
      targ.translateTo(classGen, methodGen, Type.Real);
  }
    }
}
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

      _left.translate(classGen, methodGen);
      tleft.translateTo(classGen, methodGen, Type.String);
      _right.translate(classGen, methodGen);

      if (tright instanceof ResultTreeType) {
    tright.translateTo(classGen, methodGen, Type.String);
      }

      final int equals = cpg.addMethodref(STRING_CLASS,
            "equals",
            "(" +OBJECT_SIG+ ")Z");
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

  _right.translate(classGen, methodGen);
  _right.startIterator(classGen, methodGen);

  // Cast a result tree to a string to use an existing compare
  if (tright instanceof ResultTreeType) {
      tright.translateTo(classGen, methodGen, Type.String)
      tright = Type.String;
  }

  // Call the appropriate compare() from the BasisLibrary
  il.append(new PUSH(cpg, _op));
View Full Code Here

Examples of diva.canvas.toolbox.LabelFigure.translateTo()

                    LabelFigure label = new LabelFigure(name, _labelFont, 1.0,
                            SwingConstants.SOUTH_WEST);

                    // Shift the label slightly right so it doesn't
                    // collide with ports.
                    label.translateTo(backBounds.getX(), backBounds.getY());
                    ((CompositeFigure) figure).add(label);
                }

                if (port instanceof IOPort) {
                    // Create a diagonal connector for multiports, if necessary.
View Full Code Here

Examples of diva.canvas.toolbox.LabelFigure.translateTo()

                    LabelFigure label = new LabelFigure(name, _labelFont, 1.0,
                            SwingConstants.SOUTH_WEST);

                    // Shift the label slightly right so it doesn't
                    // collide with ports.
                    label.translateTo(backBounds.getX() + 5, backBounds.getY());
                    figure.add(label);
                } else {
                    LabelFigure label = new LabelFigure(name, _labelFont, 1.0,
                            SwingConstants.CENTER);
                    label.translateTo(backBounds.getCenterX(), backBounds
View Full Code Here

Examples of diva.canvas.toolbox.LabelFigure.translateTo()

                    label.translateTo(backBounds.getX() + 5, backBounds.getY());
                    figure.add(label);
                } else {
                    LabelFigure label = new LabelFigure(name, _labelFont, 1.0,
                            SwingConstants.CENTER);
                    label.translateTo(backBounds.getCenterX(), backBounds
                            .getCenterY());
                    figure.add(label);
                }
            }
        }
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.