org.springframework.context.annotation
Class ConfigurationClassParser.ImportStack

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector<E>
              extended by java.util.Stack<ConfigurationClass>
                  extended by org.springframework.context.annotation.ConfigurationClassParser.ImportStack
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<ConfigurationClass>, java.util.Collection<ConfigurationClass>, java.util.List<ConfigurationClass>, java.util.RandomAccess, ConfigurationClassParser.ImportRegistry
Enclosing class:
ConfigurationClassParser

private static class ConfigurationClassParser.ImportStack
extends java.util.Stack<ConfigurationClass>
implements ConfigurationClassParser.ImportRegistry


Field Summary
private  java.util.Map<java.lang.String,java.lang.String> imports
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
private ConfigurationClassParser.ImportStack()
           
 
Method Summary
 boolean contains(java.lang.Object elem)
          Simplified contains() implementation that tests to see if any ConfigurationClass exists within this stack that has the same name as elem.
 java.lang.String getImportingClassFor(java.lang.String importedClass)
           
 void registerImport(java.lang.String importingClass, java.lang.String importedClass)
           
 java.lang.String toString()
          Given a stack containing (in order) com.acme.Foo com.acme.Bar com.acme.Baz return "ImportStack: [Foo->Bar->Baz]".
 
Methods inherited from class java.util.Stack
empty, peek, pop, push, search
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

imports

private java.util.Map<java.lang.String,java.lang.String> imports
Constructor Detail

ConfigurationClassParser.ImportStack

private ConfigurationClassParser.ImportStack()
Method Detail

getImportingClassFor

public java.lang.String getImportingClassFor(java.lang.String importedClass)
Specified by:
getImportingClassFor in interface ConfigurationClassParser.ImportRegistry

registerImport

public void registerImport(java.lang.String importingClass,
                           java.lang.String importedClass)

contains

public boolean contains(java.lang.Object elem)
Simplified contains() implementation that tests to see if any ConfigurationClass exists within this stack that has the same name as elem. Elem must be of type ConfigurationClass.

Specified by:
contains in interface java.util.Collection<ConfigurationClass>
Specified by:
contains in interface java.util.List<ConfigurationClass>
Overrides:
contains in class java.util.Vector<ConfigurationClass>

toString

public java.lang.String toString()
Given a stack containing (in order) return "ImportStack: [Foo->Bar->Baz]".

Overrides:
toString in class java.util.Vector<ConfigurationClass>