jellyj.syntaxtree
Class StringLiteral
jellyj.syntaxtree.SyntaxTreeNode
|
+--jellyj.syntaxtree.ExpressionNode
|
+--jellyj.syntaxtree.Literal
|
+--jellyj.syntaxtree.StringLiteral
- public class StringLiteral
- extends Literal
Methods inherited from class jellyj.syntaxtree.ExpressionNode |
addFalseList, addTrueList, appendToFalseList, appendToTrueList, backPatch, desynthesize, evaluate, evaluateExp, leftValue, lookupPrimop, superExp, synthesize, thisExp, thisOrSuperExp, translateSynthesized, type, typeExp, variableExp |
value_d
public String value_d
StringLiteral
public StringLiteral(String value)
addToConstantPool
public int addToConstantPool(ClassGen classGen)
charAt
public char charAt(int i)
encode
public void encode()
- This function encodes sequences like '\n' or '\166' into
the corresponding ascii char. (Untested !!)
translate
public void translate(ClassGen classGen, MethodGen methodGen)
typeCheck
public Type typeCheck(SymbolTable stable)
throws jellyj.util.TypeCheckError
to Class java.lang.String