Java Code Examples for sun.reflect.annotation.AnnotationSupport

The following examples show how to use sun.reflect.annotation.AnnotationSupport. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: jdk1.8-source-analysis   Source File: Executable.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 2
Source Project: jdk1.8-source-analysis   Source File: Field.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 * @since 1.8
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 3
Source Project: jdk1.8-source-analysis   Source File: Parameter.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 4
Source Project: dragonwell8_jdk   Source File: Executable.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 5
Source Project: dragonwell8_jdk   Source File: Field.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 * @since 1.8
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 6
Source Project: dragonwell8_jdk   Source File: Parameter.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 7
Source Project: TencentKona-8   Source File: Executable.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 8
Source Project: TencentKona-8   Source File: Field.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 * @since 1.8
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 9
Source Project: TencentKona-8   Source File: Parameter.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 10
Source Project: jdk8u60   Source File: Executable.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 * @since 1.8
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 11
Source Project: jdk8u60   Source File: Field.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 * @since 1.8
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 12
Source Project: jdk8u60   Source File: Parameter.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 13
Source Project: JDKSourceCode1.8   Source File: Executable.java    License: MIT License 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 14
Source Project: JDKSourceCode1.8   Source File: Field.java    License: MIT License 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 * @since 1.8
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 15
Source Project: JDKSourceCode1.8   Source File: Parameter.java    License: MIT License 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 16
Source Project: openjdk-jdk8u   Source File: Executable.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 17
Source Project: openjdk-jdk8u   Source File: Field.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 * @since 1.8
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 18
Source Project: openjdk-jdk8u   Source File: Parameter.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 19
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 20
Source Project: openjdk-jdk8u-backup   Source File: Field.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 * @since 1.8
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 21
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 22
Source Project: Bytecoder   Source File: Executable.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 23
Source Project: Bytecoder   Source File: Field.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 * @since 1.8
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 24
Source Project: Bytecoder   Source File: Parameter.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 25
Source Project: openjdk-jdk9   Source File: Executable.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 26
Source Project: openjdk-jdk9   Source File: Field.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 * @since 1.8
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 27
Source Project: openjdk-jdk9   Source File: Parameter.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 28
Source Project: jdk8u-jdk   Source File: Executable.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 29
Source Project: jdk8u-jdk   Source File: Field.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 * @since 1.8
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}
 
Example 30
Source Project: jdk8u-jdk   Source File: Parameter.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 * @throws NullPointerException {@inheritDoc}
 */
@Override
public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
    Objects.requireNonNull(annotationClass);

    return AnnotationSupport.getDirectlyAndIndirectlyPresent(declaredAnnotations(), annotationClass);
}