AST
node type LUBType

General Info

Production
LUBType : ReferenceType ::= Modifiers <ID:String> BodyDecl* TypeBound:Access*;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.TypeDecl
              extended by AST.ReferenceType
                  extended by AST.LUBType
All Implemented Interfaces:
SimpleSet, VariableScope, java.lang.Cloneable, java.lang.Iterable<ASTNode>, java.util.Iterator

Nested classes/interfaces inherited from interface AST.SimpleSet

Description

Source
Declared in Java1.5Frontend/Generics.ast at line 46

Member Filters

API level:

Aspect:

Constructors

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

Attributes

syn TypeDecl lub()
Source
Declared in Java1.5Frontend/GenericMethodsInference.jrag at line 650
Aspect
GenericMethodsInference
syn java.lang.String typeName()
Overrides:typeName in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 1434
Aspect
LookupParTypeDecl
syn boolean subtype(TypeDecl type)
Overrides:subtype in class TypeDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 346
Aspect
GenericsSubtype
syn boolean supertypeClassDecl(ClassDecl type)
Overrides:supertypeClassDecl in class TypeDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 421
Aspect
GenericsSubtype
Overrides:supertypeInterfaceDecl in class TypeDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 437
Aspect
GenericsSubtype
syn boolean supertypeGLBType(GLBType type)
Overrides:supertypeGLBType in class TypeDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 366
Aspect
GenericsSubtype

Methods

public void flushCache()
Overrides:flushCache in class ReferenceType
public void flushCollectionCache()
Overrides:flushCollectionCache in class ReferenceType
public LUBType clone()
              throws java.lang.CloneNotSupportedException
Overrides:clone in class ReferenceType
Throws:
java.lang.CloneNotSupportedException
public LUBType copy()
Overrides:copy in class ASTNode<ASTNode>
public LUBType fullCopy()
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 java.util.HashSet EC(java.util.ArrayList list)
Source
Declared in Java1.5Frontend/GenericMethodsInference.jrag at line 668
Aspect
GenericMethodsInference
public static java.util.HashSet MEC(java.util.ArrayList list)
The minimal erased candidate set for Tj is MEC = {V | V in EC, forall W != V in EC, not W <: V}
Returns:
minimal erased candidate set for Tj
Source
Declared in Java1.5Frontend/GenericMethodsInference.jrag at line 690
Aspect
GenericMethodsInference
public static java.util.HashSet Inv(TypeDecl G,
                                    java.util.ArrayList Us)
relevant invocations of G, Inv(G) Inv(G) = {V | 1 <= i <= k, V in ST(Ui), V = G<...>}
Returns:
set of relevant invocations of G, Inv(G)
Source
Declared in Java1.5Frontend/GenericMethodsInference.jrag at line 714
Aspect
GenericMethodsInference
public TypeDecl lci(java.util.HashSet set,
                    TypeDecl G)
Returns:
least containing invocation (lci)
Source
Declared in Java1.5Frontend/GenericMethodsInference.jrag at line 730
Aspect
GenericMethodsInference
least containing type arguments
Source
Declared in Java1.5Frontend/GenericMethodsInference.jrag at line 751
Aspect
GenericMethodsInference
public TypeDecl lub(TypeDecl X,
                    TypeDecl Y)
Source
Declared in Java1.5Frontend/GenericMethodsInference.jrag at line 793
Aspect
GenericMethodsInference
public TypeDecl lub(java.util.ArrayList list)
Source
Declared in Java1.5Frontend/GenericMethodsInference.jrag at line 800
Aspect
GenericMethodsInference
public static java.util.HashSet EST(TypeDecl t)
Source
Declared in Java1.5Frontend/GenericMethodsInference.jrag at line 805
Aspect
GenericMethodsInference
public static java.util.HashSet ST(TypeDecl t)
Returns:
supertype set of T
Source
Declared in Java1.5Frontend/GenericMethodsInference.jrag at line 820
Aspect
GenericMethodsInference
public static void addSupertypes(java.util.HashSet set,
                                 TypeDecl t)
Source
Declared in Java1.5Frontend/GenericMethodsInference.jrag at line 826
Aspect
GenericMethodsInference
public java.util.HashSet implementedInterfaces()
Overrides:implementedInterfaces in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 1444
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
protected int numChildren()
Overrides:numChildren in class ReferenceType
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ReferenceType
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
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 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: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.
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.
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 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

Fields

protected boolean lub_computed
protected java.util.Map subtype_TypeDecl_values

Inherited Members

Attributes inherited from AST.ReferenceType

Attributes inherited from AST.TypeDecl

Attributes inherited from AST.ASTNode

Methods inherited from class AST.ReferenceType

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

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