Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source
   * Copyright 2008, Red Hat, Inc., and individual contributors
   * by the @authors tag. See the copyright.txt in the distribution for a
   * full listing of individual contributors.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
  * http://www.apache.org/licenses/LICENSE-2.0
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package org.jboss.weld.annotated.enhanced;
 
 
 import java.util.Set;

AnnotatedItem provides a uniform access to the annotations on an annotated item defined either in Java or XML

Author(s):
Pete Muir
 
 
 public interface EnhancedAnnotated<T, S> extends Annotated {

    
The set of meta-annotations to map
 
     Set<Class<? extends Annotation>> MAPPED_METAANNOTATIONS = Arrays2.asSet(Qualifier.classStereotype.classScope.classNormalScope.classInterceptorBinding.class);

    
The set of declared meta-annotations to map
 
     Set<Class<? extends Annotation>> MAPPED_DECLARED_METAANNOTATIONS = Arrays2.asSet(Scope.classNormalScope.class);

    
Gets all annotations which are annotated with the given meta annotation type

Parameters:
The meta annotation to match
Returns:
A set of matching meta-annotations. Returns an empty set if there are no matches.
 
     Set<AnnotationgetMetaAnnotations(Class<? extends AnnotationmetaAnnotationType);

    
Gets the binding types for this element

Deprecated:
This reflection type should not know about JSR-299 binding types
Returns:
A set of binding types present on the type. Returns an empty set if there are no matches.
 
     @Deprecated
     Set<AnnotationgetQualifiers();

    
Gets the binding types for this element

Deprecated:
This reflection type should not know about JSR-299 binding types
Returns:
An array of binding types present on the type. Returns an empty array if there are no matches.
 
     @Deprecated
     Annotation[] getBindingsAsArray();

    
Get the type hierarchy of any interfaces implemented by this class.

The returned types should have any type parameters resolved to their actual types.

There is no guarantee this methods executes in O(1) time

Returns:
the type hierarchy
 
     Set<TypegetInterfaceClosure();

    
Gets the type of the element

Returns:
The type of the element
 
     Class<T> getJavaClass();

    
Gets the actual type arguments for any parameterized types that this AnnotatedItem represents.

Returns:
An array of type arguments
    Type[] getActualTypeArguments();

    
Indicates if this AnnotatedItem represents a static element

Returns:
True if static, false otherwise
    boolean isStatic();
    boolean isGeneric();

    
Indicates if this AnnotatedItem represents a final element

Returns:
True if final, false otherwise
    boolean isFinal();

    
Indicates if this annotated item is public

Returns:
if public, returns true
    boolean isPublic();
    boolean isPrivate();
    boolean isPackagePrivate();
    Package getPackage();

    
Gets the name of this AnnotatedItem

If it is not possible to determine the name of the underling element, a IllegalArgumentException is thrown

Returns:
The name
    String getName();
    boolean isParameterizedType();
    boolean isPrimitive();

    
Returns a lightweight implementation of javax.enterprise.inject.spi.Annotated with minimal memory footprint.

Returns:
the slim version of this javax.enterprise.inject.spi.Annotated
    Annotated slim();
New to GrepCode? Check out our FAQ X