polyglot.ast
Interface StringLit
- All Superinterfaces:
- java.lang.Cloneable, Copy, Expr, JL, Lit, Node, NodeOps, Prefix, Receiver, Term, Typed
- All Known Implementing Classes:
- StringLit_c
- public interface StringLit
- extends Lit
A StringLit
represents an immutable instance of a
String
which corresponds to a literal string in Java code.
Method Summary |
java.lang.String |
value()
The string. |
StringLit |
value(java.lang.String value)
Set the string. |
Methods inherited from interface polyglot.ast.Node |
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge |
Methods inherited from interface polyglot.ast.JL |
init, node |
Methods inherited from interface polyglot.ast.NodeOps |
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren |
Methods inherited from interface polyglot.util.Copy |
copy |
Methods inherited from interface polyglot.ast.Typed |
type |
value
public java.lang.String value()
- The string.
value
public StringLit value(java.lang.String value)
- Set the string.