AST
node type IllegalLiteral

General Info

Production
IllegalLiteral : 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.IllegalLiteral
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>

Description

Literal produced when the compiler tries to parse a malformatted NumericLiteral. This literal kind has an associated error message.
Source
Declared in Java7Frontend/Literals.ast at line 11

Member Filters

API level:

Aspect:

Constructors

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

Attributes

syn TypeDecl type()
The type of an IllegalLiteral does not matter, as it is only a placeholder literal for error messages.
Specified by:type in class Expr
Source
Declared in Java7Frontend/Literals.jrag at line 457
Aspect
Literals

Methods

public void flushCache()
Overrides:flushCache in class Literal
public void flushCollectionCache()
Overrides:flushCollectionCache in class Literal
public IllegalLiteral 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 collectErrors()
Error processing for literals. Include the token range from parsing.
Overrides:collectErrors in class ASTNode<ASTNode>
Source
Declared in Java7Frontend/Literals.jrag at line 469
Aspect
Literals
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 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