Ejemplo n.º 1
0
 /*
  * (non-Javadoc)
  *
  * @see com.ibm.jaql.lang.expr.core.Expr#decompile(java.io.PrintStream,
  *      java.util.HashSet)
  */
 public void decompile(FastPrinter exprText, HashSet<Var> capturedVars) throws Exception {
   exprText.print("(");
   exprs[0].decompile(exprText, capturedVars);
   exprText.print(") " + kw("instanceof") + " (");
   exprs[1].decompile(exprText, capturedVars);
   exprText.print(")");
 }
Ejemplo n.º 2
0
 /*
  * (non-Javadoc)
  *
  * @see com.ibm.jaql.lang.expr.core.Expr#decompile(java.io.PrintStream,
  *      java.util.HashSet)
  */
 @Override
 public void decompile(FastPrinter exprText, HashSet<Var> capturedVars) throws Exception {
   exprText.print("(");
   exprs[0].decompile(exprText, capturedVars);
   exprText.print(")" + OP_STR[op] + "(");
   exprs[1].decompile(exprText, capturedVars);
   exprText.print(")");
 }
 /*
  * (non-Javadoc)
  *
  * @see com.ibm.jaql.lang.expr.core.Expr#decompile(java.io.PrintStream,
  * java.util.HashSet)
  */
 @Override
 public void decompile(FastPrinter exprText, HashSet<Var> capturedVars) throws Exception {
   exprText.print("system::externalfn(");
   TextFullSerializer.getDefault().write(exprText, rec);
   exprText.print(")");
   String sep = "( ";
   for (Expr e : exprs) {
     exprText.print(sep);
     e.decompile(exprText, capturedVars);
     sep = ", ";
   }
   exprText.print(" )");
 }
Ejemplo n.º 4
0
 public void decompile(FastPrinter exprText, HashSet<Var> capturedVars) throws Exception {
   exprText.print("[");
   exprs[0].decompile(exprText, capturedVars);
   exprText.print("]");
   exprs[1].decompile(exprText, capturedVars);
 }