Package com.google.caja.parser

Examples of com.google.caja.parser.ParseTreeNode.makeImmutable()


      flagTainted(node, mq);
      ParseTreeNode result = expand(node, null);
      if (!mq.hasMessageAtLevel(MessageLevel.ERROR)) {
        checkTainted(result, mq);
      }
      result.makeImmutable();
      return result;
    }
    return expand(node, null);
  }
View Full Code Here


          if (debug && !rules.applicableTo(node).contains(rule)) {
            throw new SomethingWidgyHappenedError(
                rule.getName() + " should be applicable to " + node);
          }
          if (logging) { logResults(rule, node, result, null); }
          result.makeImmutable();
          return result;
        }
      } catch (RuntimeException ex) {
        if (logging) { logResults(rule, node, null, ex); }
        throw ex;
View Full Code Here

    result.getAttributes().putAll(node.getAttributes());
    if (SyntheticNodes.is(node)) {
      SyntheticNodes.s(result);
    }

    result.makeImmutable();
    return result;
  }

  static final ParseTreeNode withoutNoops(ParseTreeNode n) {
    if (n instanceof ParseTreeNodeContainer) {
View Full Code Here

        newBindings.put(entry.getKey(),
            rewriter.expand(entry.getValue(), scope));
      }
      ParseTreeNode result =
          QuasiBuilder.subst(getRuleDescription().substitutes(), newBindings);
      result.makeImmutable();
      return result;
    }
    return NONE;
  }
View Full Code Here

        ((ParseTreeNode) args[i]).makeImmutable();
      }
    }
    ParseTreeNode result =
        QuasiBuilder.substV(getRuleDescription().substitutes(), args);
    result.makeImmutable();
    return result;
  }

  /**
   * Split the target of a read/set operation into an LHS, an RHS, and
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.