예제 #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(")");
 }
예제 #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(" )");
 }
예제 #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);
 }