org.extendj.ast
node type GLBType

General Info

Production
GLBType : ReferenceType ::= Modifiers <ID:String> BodyDecl* TypeBound:Access*;
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.ReferenceType
                  extended by org.extendj.ast.GLBType
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>, java.util.Iterator, org.jastadd.util.PrettyPrintable
static class SimpleSet.SimpleSetImpl
           

Description

Source
Declared in /home/jesper/git/extendj/java5/grammar/Generics.ast at line 47

Member Filters

API level:

Aspect:

Constructors

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

Attributes

@ASTNodeAnnotation.Attribute
syn java.lang.String typeName()
Overrides:typeName in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java5/frontend/Generics.jrag at line 1584
Aspect
LookupParTypeDecl
Overrides:supertypeLUBType in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java5/frontend/GenericsSubtype.jrag at line 376
Aspect
GenericsSubtype
Overrides:supertypeGLBType in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java5/frontend/GenericsSubtype.jrag at line 394
Aspect
GenericsSubtype
Overrides:strictSupertypeLUBType in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java8/frontend/GenericsSubtype.jrag at line 316
Aspect
StrictSubtype
Overrides:strictSupertypeGLBType in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java8/frontend/GenericsSubtype.jrag at line 336
Aspect
StrictSubtype

Methods

public java.util.HashSet implementedInterfaces()
Overrides:implementedInterfaces in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java5/frontend/Generics.jrag at line 1596
Aspect
LookupParTypeDecl
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class ReferenceType
Source
Declared in /home/jesper/git/extendj/ASTNode at line 10
protected int numChildren()
Overrides:numChildren in class ReferenceType
Source
Declared in /home/jesper/git/extendj/ASTNode at line 30
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ReferenceType
Source
Declared in /home/jesper/git/extendj/ASTNode at line 36
public void flushAttrCache()
Overrides:flushAttrCache in class ReferenceType
Source
Declared in /home/jesper/git/extendj/ASTNode at line 42
public void flushCollectionCache()
Overrides:flushCollectionCache in class ReferenceType
Source
Declared in /home/jesper/git/extendj/ASTNode at line 50
public void flushRewriteCache()
Overrides:flushRewriteCache in class ReferenceType
Source
Declared in /home/jesper/git/extendj/ASTNode at line 56
public GLBType clone()
              throws java.lang.CloneNotSupportedException
Overrides:clone in class ReferenceType
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 62
public GLBType copy()
Overrides:copy in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 69
@Deprecated
public GLBType 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 ReferenceType
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 88
public GLBType 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 ReferenceType
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 98
public GLBType 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 ReferenceType
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 118
protected boolean is$Equal(ASTNode node)
Overrides:is$Equal in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 125
public void setModifiers(Modifiers node)
Replaces the Modifiers child.
Overrides:setModifiers in class ReferenceType
Parameters:
node - The new node to replace the Modifiers child.
Retrieves the Modifiers child.
Overrides:getModifiers in class ReferenceType
Returns:
The current node used as the Modifiers child.
Retrieves the Modifiers child.

This method does not invoke AST transformations.

Overrides:getModifiersNoTransform in class ReferenceType
Returns:
The current node used as the Modifiers child.
public void setID(java.lang.String value)
Replaces the lexeme ID.
Overrides:setID in class ReferenceType
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 ReferenceType
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 ReferenceType
Returns:
The value for the lexeme ID.
public void setBodyDeclList(List<BodyDecl> list)
Replaces the BodyDecl list.
Overrides:setBodyDeclList in class ReferenceType
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 ReferenceType
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 ReferenceType
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 ReferenceType
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 ReferenceType
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 ReferenceType
Parameters:
node - The element to append to the BodyDecl list.
public void setBodyDecl(BodyDecl node,
                        int i)
Replaces the BodyDecl list element at index i with the new node node.
Overrides:setBodyDecl in class ReferenceType
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 ReferenceType
Returns:
The node representing the BodyDecl list.
Retrieves the BodyDecl list.

This method does not invoke AST transformations.

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

This method does not invoke AST transformations.

Overrides:getBodyDeclsNoTransform in class ReferenceType
Returns:
The node representing the BodyDecl list.
public void setTypeBoundList(List<Access> list)
Replaces the TypeBound list.
Parameters:
list - The new list node to be used as the TypeBound list.
public int getNumTypeBound()
Retrieves the number of children in the TypeBound list.
Returns:
Number of children in the TypeBound list.
Retrieves the number of children in the TypeBound list. Calling this method will not trigger rewrites.
Returns:
Number of children in the TypeBound list.
public Access getTypeBound(int i)
Retrieves the element at index i in the TypeBound list.
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the TypeBound list.
public boolean hasTypeBound()
Check whether the TypeBound list has any children.
Returns:
true if it has at least one child, false otherwise.
public void addTypeBound(Access node)
Append an element to the TypeBound list.
Parameters:
node - The element to append to the TypeBound list.
public void addTypeBoundNoTransform(Access node)
public void setTypeBound(Access node,
                         int i)
Replaces the TypeBound list element at index i with the new node node.
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the TypeBound list.
Returns:
The node representing the TypeBound list.
Retrieves the TypeBound list.

This method does not invoke AST transformations.

Returns:
The node representing the TypeBound list.
Retrieves the TypeBound list.
Returns:
The node representing the TypeBound list.
Retrieves the TypeBound list.

This method does not invoke AST transformations.

Returns:
The node representing the TypeBound list.
Overrides:rewriteTo in class ReferenceType
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 subtype_TypeDecl_values
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.ReferenceType

Attributes inherited from org.extendj.ast.TypeDecl

Attributes inherited from org.extendj.ast.ASTNode

Methods inherited from class org.extendj.ast.ReferenceType

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.ReferenceType

Fields inherited from org.extendj.ast.TypeDecl

Fields inherited from org.extendj.ast.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value