Class Nesting
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.sqlstore.query.util.scope.Nesting
-
public class Nesting extends Object
This class is used to handle the hidden definition of an identifier. If an identifier is declared its old definition is hidden and stored in the actual nesting.- Version:
- 0.1
- Author:
- Michael Bouschen
-
-
Field Summary
Fields Modifier and Type Field Description protected List
hiddenDefs
List of hidden definitions; each definition in this list corresponds to an identifier of the list idents.protected List
idents
List of idents with hidden definitions in the actual scope.
-
Constructor Summary
Constructors Constructor Description Nesting()
Creates an new nesting.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(String ident, Definition hidden)
Adds a hidden definition to this.Iterator
getHiddenDefinitions()
Returns an enumeration of hidden definitions.Iterator
getIdents()
Returns an enumeration of idents with hidden definitions.
-
-
-
Method Detail
-
add
public void add(String ident, Definition hidden)
Adds a hidden definition to this.- Parameters:
ident
- name of the identifierhidden
- the hidden definition of ident
-
getIdents
public Iterator getIdents()
Returns an enumeration of idents with hidden definitions.
-
getHiddenDefinitions
public Iterator getHiddenDefinitions()
Returns an enumeration of hidden definitions.
-
-