Exemple #1
0
 @Override
 public String toString() {
   final StringBuilder sb = new StringBuilder(COPY + ' ');
   for (final Let t : copies)
     sb.append(t.var).append(' ').append(ASSIGN).append(' ').append(t.expr).append(' ');
   return sb.append(MODIFY + ' ' + expr[0] + ' ' + RETURN + ' ' + expr[1]).toString();
 }
Exemple #2
0
 /**
  * Returns a string representation of all found arguments.
  *
  * @param args array with arguments
  * @return string representation
  */
 static String foundArgs(final Value[] args) {
   // compose found arguments
   final StringBuilder sb = new StringBuilder();
   for (final Value v : args) {
     if (sb.length() != 0) sb.append(", ");
     sb.append(v instanceof Jav ? Util.className(((Jav) v).toJava()) : v.seqType());
   }
   return sb.toString();
 }
Exemple #3
0
 @Override
 public final String toString() {
   final StringBuilder sb = new StringBuilder();
   if (test == Test.NOD) {
     if (axis == Axis.PARENT) sb.append("..");
     if (axis == Axis.SELF) sb.append(".");
   }
   if (sb.length() == 0) {
     if (axis == Axis.ATTR && test != Test.NOD) sb.append("@");
     else if (axis != Axis.CHILD) sb.append(axis + "::");
     sb.append(test);
   }
   return sb.append(super.toString()).toString();
 }
Exemple #4
0
 @Override
 public String toString() {
   final StringBuilder sb = new StringBuilder();
   for (final UserFunc f : funcs) sb.append(f.toString());
   return sb.toString();
 }
Exemple #5
0
 @Override
 public String toString() {
   final StringBuilder sb = new StringBuilder();
   for (int i = 0; i < func.length; ++i) sb.append(func[i].toString());
   return sb.toString();
 }