org.extendj.ast
node type PrimitiveType

General Info

Production
PrimitiveType : TypeDecl ::= Modifiers <ID:String> [SuperClass:Access] BodyDecl*;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by org.extendj.ast.ASTNode<ASTNode>
          extended by org.extendj.ast.TypeDecl
              extended by org.extendj.ast.PrimitiveType
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>, java.util.Iterator, org.jastadd.util.PrettyPrintable
Direct Known Subclasses:
BooleanType, EmptyType, NumericType
static class SimpleSet.SimpleSetImpl
           

Description

Source
Declared in /home/jesper/git/extendj/java4/grammar/Java.ast at line 42

Member Filters

API level:

Aspect:

Constructors

public PrimitiveType()
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 1
public PrimitiveType(Modifiers p0,
                     java.lang.String p1,
                     Opt<Access> p2,
                     List<BodyDecl> p3)
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 15
public PrimitiveType(Modifiers p0,
                     beaver.Symbol p1,
                     Opt<Access> p2,
                     List<BodyDecl> p3)
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 21

Attributes

Overrides:wideningConversionTo in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag at line 38
Aspect
TypeConversion
Overrides:narrowingConversionTo in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag at line 39
Aspect
TypeConversion
Overrides:isPrimitiveType in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag at line 190
Aspect
TypeAnalysis
Overrides:isPrimitive in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag at line 245
Aspect
TypeAnalysis
Overrides:instanceOf in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag at line 442
Aspect
TypeWideningAndIdentity
Overrides:isSupertypeOfPrimitiveType in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag at line 519
Aspect
TypeWideningAndIdentity
Source
Declared in /home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag at line 665
Aspect
SuperClasses
Overrides:variableSize in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java4/backend/LocalNum.jrag at line 199
Aspect
LocalNum
Overrides:isValidAnnotationMethodReturnType in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java5/frontend/Annotations.jrag at line 151
Aspect
Annotations
Overrides:boxingConversionTo in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java5/frontend/AutoBoxing.jrag at line 52
Aspect
AutoBoxing
Overrides:supertypePrimitiveType in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java5/frontend/GenericsSubtype.jrag at line 506
Aspect
GenericsSubtype
Overrides:fieldTypeSignature in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java5/backend/GenericsCodegen.jrag at line 467
Aspect
GenericsCodegen
Overrides:classTypeSignature in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java5/backend/GenericsCodegen.jrag at line 476
Aspect
GenericsCodegen
Overrides:strictSupertypePrimitiveType in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java8/frontend/GenericsSubtype.jrag at line 437
Aspect
StrictSubtype

Methods

Overrides:createQualifiedAccess in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java4/frontend/QualifiedNames.jrag at line 120
Aspect
CreateQualifiedAccesses
public boolean hasSuperclass()
Source
Declared in /home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag at line 661
Aspect
SuperClasses
public void emitReturn(org.extendj.ast.CodeGeneration gen)
Overrides:emitReturn in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java4/backend/CodeGeneration.jrag at line 242
Aspect
CodeGeneration
public void emitLoadLocal(org.extendj.ast.CodeGeneration gen,
                          int pos)
Overrides:emitLoadLocal in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java4/backend/CodeGeneration.jrag at line 263
Aspect
CodeGeneration
public void emitStoreLocal(org.extendj.ast.CodeGeneration gen,
                           int pos)
Overrides:emitStoreLocal in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java4/backend/CodeGeneration.jrag at line 406
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 TypeDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 10
protected int numChildren()
Overrides:numChildren in class TypeDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 30
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class TypeDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 36
public void flushAttrCache()
Overrides:flushAttrCache in class TypeDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 42
public void flushCollectionCache()
Overrides:flushCollectionCache in class TypeDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 54
public void flushRewriteCache()
Overrides:flushRewriteCache in class TypeDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 60
public PrimitiveType clone()
                    throws java.lang.CloneNotSupportedException
Overrides:clone in class TypeDecl
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 66
public PrimitiveType copy()
Overrides:copy in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 73
@Deprecated
public PrimitiveType fullCopy()
Deprecated. Please use treeCopy or treeCopyNoTransform instead

Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.

Specified by:fullCopy in class TypeDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 92
public PrimitiveType treeCopyNoTransform()
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Specified by:treeCopyNoTransform in class TypeDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 102
public PrimitiveType treeCopy()
Create a deep copy of the AST subtree at this node. The subtree of this node is traversed to trigger rewrites before copy. The copy is dangling, i.e. has no parent.
Specified by:treeCopy in class TypeDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 122
protected boolean is$Equal(ASTNode node)
Overrides:is$Equal in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 129
public void setModifiers(Modifiers node)
Replaces the Modifiers child.
Overrides:setModifiers in class TypeDecl
Parameters:
node - The new node to replace the Modifiers child.
Retrieves the Modifiers child.
Overrides:getModifiers in class TypeDecl
Returns:
The current node used as the Modifiers child.
Retrieves the Modifiers child.

This method does not invoke AST transformations.

Overrides:getModifiersNoTransform in class TypeDecl
Returns:
The current node used as the Modifiers child.
public void setID(java.lang.String value)
Replaces the lexeme ID.
Overrides:setID in class TypeDecl
Parameters:
value - The new value for the lexeme ID.
public void setID(beaver.Symbol symbol)
JastAdd-internal setter for lexeme ID using the Beaver parser.
Overrides:setID in class TypeDecl
Parameters:
symbol - Symbol containing the new value for the lexeme ID
@ASTNodeAnnotation.Token(name="ID")
public java.lang.String getID()
Retrieves the value for the lexeme ID.
Overrides:getID in class TypeDecl
Returns:
The value for the lexeme ID.
public void setSuperClassOpt(Opt<Access> opt)
Replaces the optional node for the SuperClass child. This is the Opt node containing the child SuperClass, not the actual child!
Parameters:
opt - The new node to be used as the optional node for the SuperClass child.
public void setSuperClass(Access node)
Replaces the (optional) SuperClass child.
Parameters:
node - The new node to be used as the SuperClass child.
public boolean hasSuperClass()
Check whether the optional SuperClass child exists.
Returns:
true if the optional SuperClass child exists, false if it does not.
Retrieves the (optional) SuperClass child.
Returns:
The SuperClass child, if it exists. Returns null otherwise.
Retrieves the optional node for the SuperClass child. This is the Opt node containing the child SuperClass, not the actual child!
Returns:
The optional node for child the SuperClass child.
Retrieves the optional node for child SuperClass. This is the Opt node containing the child SuperClass, not the actual child!

This method does not invoke AST transformations.

Returns:
The optional node for child SuperClass.
public void setBodyDeclList(List<BodyDecl> list)
Replaces the BodyDecl list.
Overrides:setBodyDeclList in class TypeDecl
Parameters:
list - The new list node to be used as the BodyDecl list.
public int getNumBodyDecl()
Retrieves the number of children in the BodyDecl list.
Overrides:getNumBodyDecl in class TypeDecl
Returns:
Number of children in the BodyDecl list.
Retrieves the number of children in the BodyDecl list. Calling this method will not trigger rewrites.
Overrides:getNumBodyDeclNoTransform in class TypeDecl
Returns:
Number of children in the BodyDecl list.
public BodyDecl getBodyDecl(int i)
Retrieves the element at index i in the BodyDecl list.
Overrides:getBodyDecl in class TypeDecl
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the BodyDecl list.
public boolean hasBodyDecl()
Check whether the BodyDecl list has any children.
Overrides:hasBodyDecl in class TypeDecl
Returns:
true if it has at least one child, false otherwise.
public void addBodyDecl(BodyDecl node)
Append an element to the BodyDecl list.
Overrides:addBodyDecl in class TypeDecl
Parameters:
node - The element to append to the BodyDecl list.
public void addBodyDeclNoTransform(BodyDecl node)
Overrides:addBodyDeclNoTransform in class TypeDecl
public void setBodyDecl(BodyDecl node,
                        int i)
Replaces the BodyDecl list element at index i with the new node node.
Overrides:setBodyDecl in class TypeDecl
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the BodyDecl list.
Overrides:getBodyDeclList in class TypeDecl
Returns:
The node representing the BodyDecl list.
Retrieves the BodyDecl list.

This method does not invoke AST transformations.

Overrides:getBodyDeclListNoTransform in class TypeDecl
Returns:
The node representing the BodyDecl list.
Retrieves the BodyDecl list.
Overrides:getBodyDecls in class TypeDecl
Returns:
The node representing the BodyDecl list.
Retrieves the BodyDecl list.

This method does not invoke AST transformations.

Overrides:getBodyDeclsNoTransform in class TypeDecl
Returns:
The node representing the BodyDecl list.
public TypeDecl Define_hostType(ASTNode caller,
                                ASTNode child)
Overrides:Define_hostType in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java7/frontend/MultiCatch.jrag at line 71
protected boolean canDefine_hostType(ASTNode caller,
                                     ASTNode child)
Overrides:rewriteTo in class TypeDecl
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public org.extendj.ast.SimpleSet lookupVariable(java.lang.String name)

Fields

protected java.util.Map instanceOf_TypeDecl_values
protected java.util.Map subtype_TypeDecl_values
protected boolean fieldTypeSignature_computed
protected java.lang.String fieldTypeSignature_value
protected boolean classTypeSignature_computed
protected java.lang.String classTypeSignature_value
protected java.util.Map strictSubtype_TypeDecl_values
public static final org.extendj.ast.SimpleSet emptySet
public static final org.extendj.ast.SimpleSet fullSet

Inherited Members

Attributes inherited from org.extendj.ast.TypeDecl

Attributes inherited from org.extendj.ast.ASTNode

Methods inherited from class org.extendj.ast.TypeDecl

Methods inherited from class org.extendj.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 org.extendj.ast.TypeDecl

Fields inherited from org.extendj.ast.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value