static { ops = new Table<PREFIX_EXPR>(PREFIX_EXPR.PE_SIZE.ordinal()); ops.fill("+", PREFIX_EXPR.PLUS); ops.fill("-", PREFIX_EXPR.MINUS); ops.fill("++", PREFIX_EXPR.PLUSPLUS); ops.fill("--", PREFIX_EXPR.MINUSMINUS); ops.fill("~", PREFIX_EXPR.NEG); ops.fill("!", PREFIX_EXPR.NOT); ops.fill("&&", PREFIX_EXPR.LABREF); ops.fill("__real", PREFIX_EXPR.REAL); ops.fill("__imag", PREFIX_EXPR.IMAG); }
@Override void XMLAttributes(final StringBuilder sb) { sb.append(" op=\"").append(BinaryExpression.encodeXML(ops.getStr(op))).append('"'); }
public PrefixExpression(final String op) { this.op = ops.getVal(op); }