当前位置: 首页>>代码示例>>Java>>正文


Java TypeAnnotationParser.buildAnnotatedTypes方法代码示例

本文整理汇总了Java中sun.reflect.annotation.TypeAnnotationParser.buildAnnotatedTypes方法的典型用法代码示例。如果您正苦于以下问题:Java TypeAnnotationParser.buildAnnotatedTypes方法的具体用法?Java TypeAnnotationParser.buildAnnotatedTypes怎么用?Java TypeAnnotationParser.buildAnnotatedTypes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在sun.reflect.annotation.TypeAnnotationParser的用法示例。


在下文中一共展示了TypeAnnotationParser.buildAnnotatedTypes方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getAnnotatedParameterTypes

import sun.reflect.annotation.TypeAnnotationParser; //导入方法依赖的package包/类
/**
 * Returns an array of {@code AnnotatedType} objects that represent the use
 * of types to specify formal parameter types of the method/constructor
 * represented by this Executable. The order of the objects in the array
 * corresponds to the order of the formal parameter types in the
 * declaration of the method/constructor.
 *
 * Returns an array of length 0 if the method/constructor declares no
 * parameters.
 *
 * @return an array of objects representing the types of the
 * formal parameters of the method or constructor represented by this
 * {@code Executable}
 *
 * @since 1.8
 */
public AnnotatedType[] getAnnotatedParameterTypes() {
    return TypeAnnotationParser.buildAnnotatedTypes(getTypeAnnotationBytes0(),
            sun.misc.SharedSecrets.getJavaLangAccess().
                    getConstantPool(getDeclaringClass()),
            this,
            getDeclaringClass(),
            getAllGenericParameterTypes(),
            TypeAnnotation.TypeAnnotationTarget.METHOD_FORMAL_PARAMETER);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:26,代码来源:Executable.java

示例2: getAnnotatedExceptionTypes

import sun.reflect.annotation.TypeAnnotationParser; //导入方法依赖的package包/类
/**
 * Returns an array of {@code AnnotatedType} objects that represent the use
 * of types to specify the declared exceptions of the method/constructor
 * represented by this Executable. The order of the objects in the array
 * corresponds to the order of the exception types in the declaration of
 * the method/constructor.
 *
 * Returns an array of length 0 if the method/constructor declares no
 * exceptions.
 *
 * @return an array of objects representing the declared
 * exceptions of the method or constructor represented by this {@code
 * Executable}
 *
 * @since 1.8
 */
public AnnotatedType[] getAnnotatedExceptionTypes() {
    return TypeAnnotationParser.buildAnnotatedTypes(getTypeAnnotationBytes0(),
            sun.misc.SharedSecrets.getJavaLangAccess().
                    getConstantPool(getDeclaringClass()),
            this,
            getDeclaringClass(),
            getGenericExceptionTypes(),
            TypeAnnotation.TypeAnnotationTarget.THROWS);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:26,代码来源:Executable.java

示例3: getAnnotatedParameterTypes

import sun.reflect.annotation.TypeAnnotationParser; //导入方法依赖的package包/类
/**
 * Returns an array of {@code AnnotatedType} objects that represent the use
 * of types to specify formal parameter types of the method/constructor
 * represented by this Executable. The order of the objects in the array
 * corresponds to the order of the formal parameter types in the
 * declaration of the method/constructor.
 *
 * Returns an array of length 0 if the method/constructor declares no
 * parameters.
 *
 * @return an array of objects representing the types of the
 * formal parameters of the method or constructor represented by this
 * {@code Executable}
 */
public AnnotatedType[] getAnnotatedParameterTypes() {
    return TypeAnnotationParser.buildAnnotatedTypes(getTypeAnnotationBytes0(),
            sun.misc.SharedSecrets.getJavaLangAccess().
                    getConstantPool(getDeclaringClass()),
            this,
            getDeclaringClass(),
            getAllGenericParameterTypes(),
            TypeAnnotation.TypeAnnotationTarget.METHOD_FORMAL_PARAMETER);
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:24,代码来源:Executable.java

示例4: getAnnotatedExceptionTypes

import sun.reflect.annotation.TypeAnnotationParser; //导入方法依赖的package包/类
/**
 * Returns an array of {@code AnnotatedType} objects that represent the use
 * of types to specify the declared exceptions of the method/constructor
 * represented by this Executable. The order of the objects in the array
 * corresponds to the order of the exception types in the declaration of
 * the method/constructor.
 *
 * Returns an array of length 0 if the method/constructor declares no
 * exceptions.
 *
 * @return an array of objects representing the declared
 * exceptions of the method or constructor represented by this {@code
 * Executable}
 */
public AnnotatedType[] getAnnotatedExceptionTypes() {
    return TypeAnnotationParser.buildAnnotatedTypes(getTypeAnnotationBytes0(),
            sun.misc.SharedSecrets.getJavaLangAccess().
                    getConstantPool(getDeclaringClass()),
            this,
            getDeclaringClass(),
            getGenericExceptionTypes(),
            TypeAnnotation.TypeAnnotationTarget.THROWS);
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:24,代码来源:Executable.java

示例5: getAnnotatedParameterTypes

import sun.reflect.annotation.TypeAnnotationParser; //导入方法依赖的package包/类
/**
 * Returns an array of {@code AnnotatedType} objects that represent the use
 * of types to specify formal parameter types of the method/constructor
 * represented by this Executable. The order of the objects in the array
 * corresponds to the order of the formal parameter types in the
 * declaration of the method/constructor.
 *
 * Returns an array of length 0 if the method/constructor declares no
 * parameters.
 *
 * @return an array of objects representing the types of the
 * formal parameters of the method or constructor represented by this
 * {@code Executable}
 */
public AnnotatedType[] getAnnotatedParameterTypes() {
    return TypeAnnotationParser.buildAnnotatedTypes(getTypeAnnotationBytes0(),
            SharedSecrets.getJavaLangAccess().
                    getConstantPool(getDeclaringClass()),
            this,
            getDeclaringClass(),
            getAllGenericParameterTypes(),
            TypeAnnotation.TypeAnnotationTarget.METHOD_FORMAL_PARAMETER);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:24,代码来源:Executable.java

示例6: getAnnotatedExceptionTypes

import sun.reflect.annotation.TypeAnnotationParser; //导入方法依赖的package包/类
/**
 * Returns an array of {@code AnnotatedType} objects that represent the use
 * of types to specify the declared exceptions of the method/constructor
 * represented by this Executable. The order of the objects in the array
 * corresponds to the order of the exception types in the declaration of
 * the method/constructor.
 *
 * Returns an array of length 0 if the method/constructor declares no
 * exceptions.
 *
 * @return an array of objects representing the declared
 * exceptions of the method or constructor represented by this {@code
 * Executable}
 */
public AnnotatedType[] getAnnotatedExceptionTypes() {
    return TypeAnnotationParser.buildAnnotatedTypes(getTypeAnnotationBytes0(),
            SharedSecrets.getJavaLangAccess().
                    getConstantPool(getDeclaringClass()),
            this,
            getDeclaringClass(),
            getGenericExceptionTypes(),
            TypeAnnotation.TypeAnnotationTarget.THROWS);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:24,代码来源:Executable.java

示例7: getAnnotatedParameterTypes

import sun.reflect.annotation.TypeAnnotationParser; //导入方法依赖的package包/类
/**
 * Returns an array of {@code AnnotatedType} objects that represent the use
 * of types to specify formal parameter types of the method/constructor
 * represented by this Executable. The order of the objects in the array
 * corresponds to the order of the formal parameter types in the
 * declaration of the method/constructor.
 *
 * Returns an array of length 0 if the method/constructor declares no
 * parameters.
 *
 * @return an array of objects representing the types of the
 * formal parameters of the method or constructor represented by this
 * {@code Executable}
 *
 * @since 1.8
 */
public AnnotatedType[] getAnnotatedParameterTypes() {
    return TypeAnnotationParser.buildAnnotatedTypes(getTypeAnnotationBytes0(),
            sun.misc.SharedSecrets.getJavaLangAccess().
                    getConstantPool(getDeclaringClass()),
            this,
            getDeclaringClass(),
            getParameterTypes(),
            TypeAnnotation.TypeAnnotationTarget.METHOD_FORMAL_PARAMETER);
}
 
开发者ID:RedlineResearch,项目名称:OLD-OpenJDK8,代码行数:26,代码来源:Executable.java


注:本文中的sun.reflect.annotation.TypeAnnotationParser.buildAnnotatedTypes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。