com.google.caja.parser.quasiliteral
Class StringLiteralQuasiNode
java.lang.Object
com.google.caja.parser.quasiliteral.QuasiNode
com.google.caja.parser.quasiliteral.StringLiteralQuasiNode
class StringLiteralQuasiNode
- extends QuasiNode
A quasi-node like "@foo"
where matching against a string literal
whose content is a valid identifier, will bind the name "foo"
to a
valid Identifier
whose value is the content of the string literal.
Substituting into "@foo"
will find a Reference
or
Identifier
binding reference for "foo"
and produce
a string literal containing the identifier name.
- Author:
- mikesamuel@gmail.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bindingName
private final java.lang.String bindingName
StringLiteralQuasiNode
StringLiteralQuasiNode(java.lang.String bindingName)
consumeSpecimens
protected boolean consumeSpecimens(java.util.List<ParseTreeNode> specimens,
java.util.Map<java.lang.String,ParseTreeNode> bindings)
- Specified by:
consumeSpecimens
in class QuasiNode
createSubstitutes
protected boolean createSubstitutes(java.util.List<ParseTreeNode> substitutes,
java.util.Map<java.lang.String,ParseTreeNode> bindings)
- Specified by:
createSubstitutes
in class QuasiNode
Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0