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


Java Scope类代码示例

本文整理汇总了Java中sun.reflect.generics.scope.Scope的典型用法代码示例。如果您正苦于以下问题:Java Scope类的具体用法?Java Scope怎么用?Java Scope使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: CoreReflectionFactory

import sun.reflect.generics.scope.Scope; //导入依赖的package包/类
private CoreReflectionFactory(GenericDeclaration d, Scope s) {
    decl = d;
    scope = s;
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:5,代码来源:CoreReflectionFactory.java

示例2: make

import sun.reflect.generics.scope.Scope; //导入依赖的package包/类
/**
 * Factory for this class. Returns an instance of
 * <tt>CoreReflectionFactory</tt> for the declaration and scope
 * provided.
 * This factory will produce reflective objects of the appropriate
 * kind. Classes produced will be those that would be loaded by the
 * defining class loader of the declaration <tt>d</tt> (if <tt>d</tt>
 * is a type declaration, or by the defining loader of the declaring
 * class of <tt>d</tt>  otherwise.
 * <p> Type variables will be created or lookup as necessary in the
 * scope <tt> s</tt>.
 * @param d - the generic declaration (class, interface, method or
 * constructor) that thsi factory services
 * @param s  the scope in which the factory will allocate and search for
 * type variables
 * @return an instance of <tt>CoreReflectionFactory</tt>
 */
public static CoreReflectionFactory make(GenericDeclaration d, Scope s) {
    return new CoreReflectionFactory(d, s);
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:21,代码来源:CoreReflectionFactory.java

示例3: make

import sun.reflect.generics.scope.Scope; //导入依赖的package包/类
/**
 * Factory for this class. Returns an instance of
 * {@code CoreReflectionFactory} for the declaration and scope
 * provided.
 * This factory will produce reflective objects of the appropriate
 * kind. Classes produced will be those that would be loaded by the
 * defining class loader of the declaration {@code d} (if {@code d}
 * is a type declaration, or by the defining loader of the declaring
 * class of {@code d} otherwise.
 * <p> Type variables will be created or lookup as necessary in the
 * scope {@code s}.
 * @param d - the generic declaration (class, interface, method or
 * constructor) that this factory services
 * @param s  the scope in which the factory will allocate and search for
 * type variables
 * @return an instance of {@code CoreReflectionFactory}
 */
public static CoreReflectionFactory make(GenericDeclaration d, Scope s) {
    return new CoreReflectionFactory(d, s);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:21,代码来源:CoreReflectionFactory.java

示例4: getScope

import sun.reflect.generics.scope.Scope; //导入依赖的package包/类
private Scope getScope(){ return scope;} 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:2,代码来源:CoreReflectionFactory.java


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