AST
node type CharacterLiteral

General Info

Production
CharacterLiteral : Literal;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.Expr
              extended by AST.PrimaryExpr
                  extended by AST.Literal
                      extended by AST.CharacterLiteral
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>

Description

Represents a single character. May not contain a Unicode escape sequence (Unicode escapes are transcoded by the scanner).
Source
Declared in Java7Frontend/Literals.ast at line 30

Member Filters

API level:

Aspect:

Constructors

 
public CharacterLiteral(java.lang.String p0)
 
public CharacterLiteral(beaver.Symbol p0)
 

Attributes

Overrides:constant in class Literal
Source
Declared in Java7Frontend/ConstantExpression.jrag at line 157
Aspect
ConstantExpression
syn TypeDecl type()
Specified by:type in class Expr
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 305
Aspect
TypeAnalysis

Methods

public void flushCache()
Overrides:flushCache in class Literal
public void flushCollectionCache()
Overrides:flushCollectionCache in class Literal
public CharacterLiteral clone()
                       throws java.lang.CloneNotSupportedException
Overrides:clone in class Literal
Throws:
java.lang.CloneNotSupportedException
Overrides:copy in class ASTNode<ASTNode>
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:fullCopy in class ASTNode<ASTNode>
Returns:
dangling copy of the subtree at this node
public void toString(java.lang.StringBuffer s)
Overrides:toString in class Literal
Source
Declared in Java1.4Frontend/PrettyPrint.jadd at line 271
Aspect
PrettyPrint
Overrides:emitPushConstant in class Literal
Source
Declared in Java1.4Backend/CodeGeneration.jrag at line 558
Aspect
CodeGeneration
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class Literal
protected int numChildren()
Overrides:numChildren in class Literal
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class Literal
public void setLITERAL(java.lang.String value)
Replaces the lexeme LITERAL.
Overrides:setLITERAL in class Literal
Parameters:
value - The new value for the lexeme LITERAL.
public void setLITERAL(beaver.Symbol symbol)
JastAdd-internal setter for lexeme LITERAL using the Beaver parser.
Overrides:setLITERAL in class Literal
public java.lang.String getLITERAL()
Retrieves the value for the lexeme LITERAL.
Overrides:getLITERAL in class Literal
Returns:
The value for the lexeme LITERAL.
Overrides:rewriteTo in class Literal

Fields

protected boolean constant_computed
protected boolean type_computed

Inherited Members

Attributes inherited from AST.Literal

Attributes inherited from AST.Expr

Attributes inherited from AST.ASTNode

Methods inherited from class AST.Literal

Methods inherited from class AST.Expr

Methods inherited from class AST.ASTNode

Methods inherited from class beaver.Symbol

getColumn
getEnd
getId
getLine
getStart
makePosition

Methods inherited from class java.lang.Object

equals
finalize
getClass
hashCode
notify
notifyAll
wait
wait
wait

Fields inherited from AST.Literal

Fields inherited from AST.Expr

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value