FileDocCategorySizeDatePackage
Nesting.javaAPI DocGlassfish v2 API3445Fri May 04 22:35:08 BST 2007com.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.
author
Michael Bouschen
version
0.1

Fields Summary
protected List
idents
List of idents with hidden definitions in the actual scope.
protected List
hiddenDefs
List of hidden definitions; each definition in this list corresponds to an identifier of the list idents.
Constructors Summary
public Nesting()
Creates an new nesting.

        this.idents = new ArrayList();
        this.hiddenDefs = new ArrayList();
    
Methods Summary
public voidadd(java.lang.String ident, Definition hidden)
Adds a hidden definition to this.

param
ident name of the identifier
param
hidden the hidden definition of ident

        idents.add(ident);
        hiddenDefs.add(hidden);
    
public java.util.IteratorgetHiddenDefinitions()
Returns an enumeration of hidden definitions.

        return hiddenDefs.iterator();
    
public java.util.IteratorgetIdents()
Returns an enumeration of idents with hidden definitions.

        return idents.iterator();