AST
node type ReferenceType

General Info

Production
ReferenceType : TypeDecl;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.TypeDecl
              extended by AST.ReferenceType
All Implemented Interfaces:
SimpleSet, VariableScope, java.lang.Cloneable, java.lang.Iterable<ASTNode>, java.util.Iterator
Direct Known Subclasses:
ClassDecl, GLBType, InterfaceDecl, LUBType, TypeVariable

Nested classes/interfaces inherited from interface AST.SimpleSet

Description

Source
Declared in Java1.4Frontend/java.ast at line 44

Member Filters

API level:

Aspect:

Constructors

public ReferenceType()
 
public ReferenceType(Modifiers p0,
                     java.lang.String p1,
                     List<BodyDecl> p2)
 
public ReferenceType(Modifiers p0,
                     beaver.Symbol p1,
                     List<BodyDecl> p2)
 

Attributes

syn boolean wideningConversionTo(TypeDecl type)
Overrides:wideningConversionTo in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 17
Aspect
TypeConversion
syn boolean narrowingConversionTo(TypeDecl type)
Overrides:narrowingConversionTo in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 36
Aspect
TypeConversion
syn boolean isReferenceType()
Overrides:isReferenceType in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 165
Aspect
TypeAnalysis
syn boolean isSupertypeOfNullType(NullType type)
Overrides:isSupertypeOfNullType in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 482
Aspect
TypeWideningAndIdentity
syn byte arrayLoad()
Overrides:arrayLoad in class TypeDecl
Source
Declared in Java1.4Backend/CodeGeneration.jrag at line 621
Aspect
CodeGeneration
syn byte arrayStore()
Overrides:arrayStore in class TypeDecl
Source
Declared in Java1.4Backend/CodeGeneration.jrag at line 723
Aspect
CodeGeneration
syn java.util.Collection bcFields()
Overrides:bcFields in class TypeDecl
Source
Declared in Java1.4Backend/GenerateClassfile.jrag at line 276
Aspect
GenerateClassfile
syn java.util.Collection bcMethods()
Source
Declared in Java1.4Backend/GenerateClassfile.jrag at line 284
Aspect
GenerateClassfile
Overrides:stringPromotion in class TypeDecl
Source
Declared in Java1.4Backend/InnerClasses.jrag at line 82
Aspect
InnerClasses
syn java.lang.String jvmName()
Overrides:jvmName in class TypeDecl
Source
Declared in Java1.4Backend/Java2Rewrites.jrag at line 18
Aspect
Java2Rewrites
syn java.lang.String referenceClassFieldName()
Overrides:referenceClassFieldName in class TypeDecl
Source
Declared in Java1.4Backend/Java2Rewrites.jrag at line 57
Aspect
Java2Rewrites
syn int variableSize()
Overrides:variableSize in class TypeDecl
Source
Declared in Java1.4Backend/LocalNum.jrag at line 124
Aspect
LocalNum
syn boolean unboxingConversionTo(TypeDecl typeDecl)
Overrides:unboxingConversionTo in class TypeDecl
Source
Declared in Java1.5Frontend/AutoBoxing.jrag at line 47
Aspect
AutoBoxing
Overrides:unboxed in class TypeDecl
Source
Declared in Java1.5Frontend/AutoBoxing.jrag at line 52
Aspect
AutoBoxing
Overrides:unaryNumericPromotion in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 146
Aspect
NumericPromotion
Overrides:binaryNumericPromotion in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 154
Aspect
NumericPromotion
syn boolean isNumericType()
Overrides:isNumericType in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 173
Aspect
TypeAnalysis
syn boolean isIntegralType()
Overrides:isIntegralType in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 177
Aspect
TypeAnalysis
syn boolean isPrimitive()
Overrides:isPrimitive in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 221
Aspect
TypeAnalysis
syn boolean isBoolean()
Overrides:isBoolean in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 181
Aspect
TypeAnalysis
syn boolean supertypeNullType(NullType type)
Overrides:supertypeNullType in class TypeDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 479
Aspect
GenericsSubtype
Source
Declared in Java1.5Frontend/AutoBoxing.jrag at line 66
Aspect
AutoBoxing
Source
Declared in Java1.5Frontend/AutoBoxing.jrag at line 67
Aspect
AutoBoxing
Source
Declared in Java1.5Frontend/AutoBoxing.jrag at line 68
Aspect
AutoBoxing
Source
Declared in Java1.5Frontend/AutoBoxing.jrag at line 69
Aspect
AutoBoxing
Overrides:typeInt in class TypeDecl
Source
Declared in Java1.5Frontend/AutoBoxing.jrag at line 70
Aspect
AutoBoxing
Source
Declared in Java1.5Frontend/AutoBoxing.jrag at line 71
Aspect
AutoBoxing
Source
Declared in Java1.5Frontend/AutoBoxing.jrag at line 72
Aspect
AutoBoxing
Source
Declared in Java1.5Frontend/AutoBoxing.jrag at line 73
Aspect
AutoBoxing

Methods

public void flushCache()
Overrides:flushCache in class TypeDecl
public void flushCollectionCache()
Overrides:flushCollectionCache in class TypeDecl
public ReferenceType clone()
                    throws java.lang.CloneNotSupportedException
Overrides:clone in class TypeDecl
Throws:
java.lang.CloneNotSupportedException
public void emitReturn(CodeGeneration gen)
Overrides:emitReturn in class TypeDecl
Source
Declared in Java1.4Backend/CodeGeneration.jrag at line 618
Aspect
CodeGeneration
public void emitLoadLocal(CodeGeneration gen,
                          int pos)
Overrides:emitLoadLocal in class TypeDecl
Source
Declared in Java1.4Backend/CodeGeneration.jrag at line 671
Aspect
CodeGeneration
public void emitStoreLocal(CodeGeneration gen,
                           int pos)
Overrides:emitStoreLocal in class TypeDecl
Source
Declared in Java1.4Backend/CodeGeneration.jrag at line 784
Aspect
CodeGeneration
public void branchEQ(CodeGeneration gen,
                     int label)
Overrides:branchEQ in class TypeDecl
Source
Declared in Java1.4Backend/CodeGeneration.jrag at line 1139
Aspect
CodeGenerationBranch
public void branchNE(CodeGeneration gen,
                     int label)
Overrides:branchNE in class TypeDecl
Source
Declared in Java1.4Backend/CodeGeneration.jrag at line 1148
Aspect
CodeGenerationBranch
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class TypeDecl
protected int numChildren()
Overrides:numChildren in class TypeDecl
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class TypeDecl
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
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 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 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: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.
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.
public void emitCastTo(CodeGeneration gen,
                       TypeDecl type)
Source
Declared in Java1.5Backend/AutoBoxingCodegen.jrag at line 89
Aspect
AutoBoxingCodegen
Overrides:rewriteTo in class TypeDecl

Fields

protected boolean bcFields_computed
protected java.util.Collection bcFields_value
protected boolean jvmName_computed
protected java.lang.String jvmName_value
protected boolean unboxed_computed

Inherited Members

Attributes inherited from AST.TypeDecl

Attributes inherited from AST.ASTNode

Methods inherited from class AST.TypeDecl

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

Methods inherited from interface AST.SimpleSet

Methods inherited from interface AST.VariableScope

Fields inherited from AST.TypeDecl

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value

Fields inherited from interface AST.SimpleSet