Java Code Examples for sun.reflect.annotation.TypeAnnotationParser#buildAnnotatedType()
The following examples show how to use
sun.reflect.annotation.TypeAnnotationParser#buildAnnotatedType() .
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 File: Constructor.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * {@inheritDoc} * @since 1.8 */ @Override public AnnotatedType getAnnotatedReceiverType() { if (getDeclaringClass().getEnclosingClass() == null) return super.getAnnotatedReceiverType(); return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), getDeclaringClass().getEnclosingClass(), TypeAnnotation.TypeAnnotationTarget.METHOD_RECEIVER); }
Example 2
Source File: Field.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * Returns an AnnotatedType object that represents the use of a type to specify * the declared type of the field represented by this Field. * @return an object representing the declared type of the field * represented by this Field * * @since 1.8 */ public AnnotatedType getAnnotatedType() { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), getGenericType(), TypeAnnotation.TypeAnnotationTarget.FIELD); }
Example 3
Source File: Field.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Returns an AnnotatedType object that represents the use of a type to specify * the declared type of the field represented by this Field. * @return an object representing the declared type of the field * represented by this Field * * @since 1.8 */ public AnnotatedType getAnnotatedType() { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), getGenericType(), TypeAnnotation.TypeAnnotationTarget.FIELD); }
Example 4
Source File: Executable.java From JDKSourceCode1.8 with MIT License | 5 votes |
AnnotatedType getAnnotatedReturnType0(Type returnType) { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), returnType, TypeAnnotation.TypeAnnotationTarget.METHOD_RETURN); }
Example 5
Source File: Executable.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
AnnotatedType getAnnotatedReturnType0(Type returnType) { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), returnType, TypeAnnotation.TypeAnnotationTarget.METHOD_RETURN); }
Example 6
Source File: Field.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Returns an AnnotatedType object that represents the use of a type to specify * the declared type of the field represented by this Field. * @return an object representing the declared type of the field * represented by this Field * * @since 1.8 */ public AnnotatedType getAnnotatedType() { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), getGenericType(), TypeAnnotation.TypeAnnotationTarget.FIELD); }
Example 7
Source File: Executable.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
AnnotatedType getAnnotatedReturnType0(Type returnType) { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), returnType, TypeAnnotation.TypeAnnotationTarget.METHOD_RETURN); }
Example 8
Source File: Field.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Returns an AnnotatedType object that represents the use of a type to specify * the declared type of the field represented by this Field. * @return an object representing the declared type of the field * represented by this Field * * @since 1.8 */ public AnnotatedType getAnnotatedType() { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), getGenericType(), TypeAnnotation.TypeAnnotationTarget.FIELD); }
Example 9
Source File: Executable.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
AnnotatedType getAnnotatedReturnType0(Type returnType) { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), returnType, TypeAnnotation.TypeAnnotationTarget.METHOD_RETURN); }
Example 10
Source File: Field.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Returns an AnnotatedType object that represents the use of a type to specify * the declared type of the field represented by this Field. * @return an object representing the declared type of the field * represented by this Field * * @since 1.8 */ public AnnotatedType getAnnotatedType() { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), getGenericType(), TypeAnnotation.TypeAnnotationTarget.FIELD); }
Example 11
Source File: Executable.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
AnnotatedType getAnnotatedReturnType0(Type returnType) { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), returnType, TypeAnnotation.TypeAnnotationTarget.METHOD_RETURN); }
Example 12
Source File: Field.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Returns an AnnotatedType object that represents the use of a type to specify * the declared type of the field represented by this Field. * @return an object representing the declared type of the field * represented by this Field * * @since 1.8 */ public AnnotatedType getAnnotatedType() { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), getGenericType(), TypeAnnotation.TypeAnnotationTarget.FIELD); }
Example 13
Source File: Executable.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
AnnotatedType getAnnotatedReturnType0(Type returnType) { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), returnType, TypeAnnotation.TypeAnnotationTarget.METHOD_RETURN); }
Example 14
Source File: Field.java From Java8CN with Apache License 2.0 | 5 votes |
/** * Returns an AnnotatedType object that represents the use of a type to specify * the declared type of the field represented by this Field. * @return an object representing the declared type of the field * represented by this Field * * @since 1.8 */ public AnnotatedType getAnnotatedType() { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), getGenericType(), TypeAnnotation.TypeAnnotationTarget.FIELD); }
Example 15
Source File: Executable.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
AnnotatedType getAnnotatedReturnType0(Type returnType) { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), returnType, TypeAnnotation.TypeAnnotationTarget.METHOD_RETURN); }
Example 16
Source File: Executable.java From hottub with GNU General Public License v2.0 | 5 votes |
AnnotatedType getAnnotatedReturnType0(Type returnType) { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), returnType, TypeAnnotation.TypeAnnotationTarget.METHOD_RETURN); }
Example 17
Source File: Executable.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
/** * Returns an {@code AnnotatedType} object that represents the use of a * type to specify the receiver type of the method/constructor represented * by this Executable object. The receiver type of a method/constructor is * available only if the method/constructor has a <em>receiver * parameter</em> (JLS 8.4.1). * * If this {@code Executable} object represents a constructor or instance * method that does not have a receiver parameter, or has a receiver * parameter with no annotations on its type, then the return value is an * {@code AnnotatedType} object representing an element with no * annotations. * * If this {@code Executable} object represents a static method, then the * return value is null. * * @return an object representing the receiver type of the method or * constructor represented by this {@code Executable} * * @since 1.8 */ public AnnotatedType getAnnotatedReceiverType() { if (Modifier.isStatic(this.getModifiers())) return null; return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), getDeclaringClass(), TypeAnnotation.TypeAnnotationTarget.METHOD_RECEIVER); }
Example 18
Source File: Executable.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 3 votes |
/** * Returns an {@code AnnotatedType} object that represents the use of a * type to specify the receiver type of the method/constructor represented * by this Executable object. The receiver type of a method/constructor is * available only if the method/constructor has a <em>receiver * parameter</em> (JLS 8.4.1). * * If this {@code Executable} object represents a constructor or instance * method that does not have a receiver parameter, or has a receiver * parameter with no annotations on its type, then the return value is an * {@code AnnotatedType} object representing an element with no * annotations. * * If this {@code Executable} object represents a static method, then the * return value is null. * * @return an object representing the receiver type of the method or * constructor represented by this {@code Executable} */ public AnnotatedType getAnnotatedReceiverType() { if (Modifier.isStatic(this.getModifiers())) return null; return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), getDeclaringClass(), TypeAnnotation.TypeAnnotationTarget.METHOD_RECEIVER); }
Example 19
Source File: Executable.java From jdk8u60 with GNU General Public License v2.0 | 3 votes |
/** * Returns an {@code AnnotatedType} object that represents the use of a * type to specify the receiver type of the method/constructor represented * by this Executable object. The receiver type of a method/constructor is * available only if the method/constructor has a <em>receiver * parameter</em> (JLS 8.4.1). * * If this {@code Executable} object represents a constructor or instance * method that does not have a receiver parameter, or has a receiver * parameter with no annotations on its type, then the return value is an * {@code AnnotatedType} object representing an element with no * annotations. * * If this {@code Executable} object represents a static method, then the * return value is null. * * @return an object representing the receiver type of the method or * constructor represented by this {@code Executable} * * @since 1.8 */ public AnnotatedType getAnnotatedReceiverType() { if (Modifier.isStatic(this.getModifiers())) return null; return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), getDeclaringClass(), TypeAnnotation.TypeAnnotationTarget.METHOD_RECEIVER); }
Example 20
Source File: Executable.java From jdk1.8-source-analysis with Apache License 2.0 | 3 votes |
/** * Returns an {@code AnnotatedType} object that represents the use of a * type to specify the receiver type of the method/constructor represented * by this Executable object. The receiver type of a method/constructor is * available only if the method/constructor has a <em>receiver * parameter</em> (JLS 8.4.1). * * If this {@code Executable} object represents a constructor or instance * method that does not have a receiver parameter, or has a receiver * parameter with no annotations on its type, then the return value is an * {@code AnnotatedType} object representing an element with no * annotations. * * If this {@code Executable} object represents a static method, then the * return value is null. * * @return an object representing the receiver type of the method or * constructor represented by this {@code Executable} */ public AnnotatedType getAnnotatedReceiverType() { if (Modifier.isStatic(this.getModifiers())) return null; return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), getDeclaringClass(), TypeAnnotation.TypeAnnotationTarget.METHOD_RECEIVER); }