AST
node type BooleanLiteral

General Info

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

Description

Represents a Java boolean; either "true" or "false".
Source
Declared in Java7Frontend/Literals.ast at line 23

Member Filters

API level:

Aspect:

Constructors

public BooleanLiteral(boolean b)
 
Source
Declared in Java1.4Frontend/NodeConstructors.jrag at line 52
Aspect
NodeConstructors
 
public BooleanLiteral(java.lang.String p0)
 
public BooleanLiteral(beaver.Symbol p0)
 

Attributes

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

Methods

public void flushCache()
Overrides:flushCache in class Literal
public void flushCollectionCache()
Overrides:flushCollectionCache in class Literal
public BooleanLiteral 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 static void push(CodeGeneration gen,
                        boolean value)
Source
Declared in Java1.4Backend/CodeGeneration.jrag at line 538
Aspect
CodeGeneration
Overrides:emitPushConstant in class Literal
Source
Declared in Java1.4Backend/CodeGeneration.jrag at line 582
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