com.caucho.config.reflect
Class AnnotationSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<java.lang.annotation.Annotation>
          extended by com.caucho.config.reflect.AnnotationSet
All Implemented Interfaces:
java.lang.Iterable<java.lang.annotation.Annotation>, java.util.Collection<java.lang.annotation.Annotation>, java.util.Set<java.lang.annotation.Annotation>

@Module
public class AnnotationSet
extends java.util.AbstractSet<java.lang.annotation.Annotation>

Abstract introspected view of a Bean


Constructor Summary
AnnotationSet()
           
AnnotationSet(java.util.Collection<java.lang.annotation.Annotation> set)
           
 
Method Summary
 boolean add(java.lang.annotation.Annotation newAnn)
           
 void clear()
           
 java.lang.annotation.Annotation getAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annType)
           
 boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annType)
           
 java.util.Iterator<java.lang.annotation.Annotation> iterator()
           
 boolean remove(java.lang.annotation.Annotation newAnn)
           
 void replace(java.lang.annotation.Annotation newAnn)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray
 

Constructor Detail

AnnotationSet

public AnnotationSet()

AnnotationSet

public AnnotationSet(java.util.Collection<java.lang.annotation.Annotation> set)
Method Detail

size

public int size()
Specified by:
size in interface java.util.Collection<java.lang.annotation.Annotation>
Specified by:
size in interface java.util.Set<java.lang.annotation.Annotation>
Specified by:
size in class java.util.AbstractCollection<java.lang.annotation.Annotation>

isAnnotationPresent

public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annType)

getAnnotation

public java.lang.annotation.Annotation getAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annType)

replace

public void replace(java.lang.annotation.Annotation newAnn)

add

public boolean add(java.lang.annotation.Annotation newAnn)
Specified by:
add in interface java.util.Collection<java.lang.annotation.Annotation>
Specified by:
add in interface java.util.Set<java.lang.annotation.Annotation>
Overrides:
add in class java.util.AbstractCollection<java.lang.annotation.Annotation>

remove

public boolean remove(java.lang.annotation.Annotation newAnn)

clear

public void clear()
Specified by:
clear in interface java.util.Collection<java.lang.annotation.Annotation>
Specified by:
clear in interface java.util.Set<java.lang.annotation.Annotation>
Overrides:
clear in class java.util.AbstractCollection<java.lang.annotation.Annotation>

iterator

public java.util.Iterator<java.lang.annotation.Annotation> iterator()
Specified by:
iterator in interface java.lang.Iterable<java.lang.annotation.Annotation>
Specified by:
iterator in interface java.util.Collection<java.lang.annotation.Annotation>
Specified by:
iterator in interface java.util.Set<java.lang.annotation.Annotation>
Specified by:
iterator in class java.util.AbstractCollection<java.lang.annotation.Annotation>

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractCollection<java.lang.annotation.Annotation>