软件包 | 描述 |
---|---|
javax.annotation.processing |
用于声明注释处理器的设施和允许注释处理器与注释处理工具环境进行通信的设施。
|
javax.lang.model.element |
使用java编程语言的模型元素的接口。
|
javax.lang.model.util |
公用事业在帮助
program elements和
types处理。
|
Modifier and Type | Method and Description |
---|---|
Set<? extends Element> |
RoundEnvironment.getElementsAnnotatedWith(TypeElement a)
返回与给定注释类型的注释的元素。
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
AbstractProcessor.process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
处理来自于前一轮的类型元素的注释类型的集合,并返回是否这些注释类型所要求的这些注释类型。
|
boolean |
Processor.process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
处理来自于前一轮的类型元素的注释类型的集合,并返回是否这些注释类型所要求的这些注释类型。
|
Modifier and Type | Method and Description |
---|---|
R |
ElementVisitor.visitType(TypeElement e, P p)
访问类型元素。
|
Modifier and Type | Method and Description |
---|---|
TypeElement |
Types.boxedClass(PrimitiveType p)
返回一个给定的原始类型的装箱值的类。
|
TypeElement |
Elements.getTypeElement(CharSequence name)
返回给定规范名称的类型元素。
|
Modifier and Type | Method and Description |
---|---|
static List<TypeElement> |
ElementFilter.typesIn(Iterable<? extends Element> elements)
返回一个列表的类型
elements 。
|
static Set<TypeElement> |
ElementFilter.typesIn(Set<? extends Element> elements)
返回一组类型
elements 。
|
Modifier and Type | Method and Description |
---|---|
List<? extends Element> |
Elements.getAllMembers(TypeElement type)
返回一个类型元素的所有成员,无论是否直接继承或声明。
|
Name |
Elements.getBinaryName(TypeElement type)
返回一个类型元素的双名。
|
DeclaredType |
Types.getDeclaredType(DeclaredType containing, TypeElement typeElem, TypeMirror... typeArgs)
返回类型对应一个元素类型与实际类型参数,给出了
containing type它是其中的一员。
|
DeclaredType |
Types.getDeclaredType(TypeElement typeElem, TypeMirror... typeArgs)
返回对应于类型元素和实际类型参数的类型。
|
boolean |
Elements.isFunctionalInterface(TypeElement type)
返回
true 如果类型元素是一个功能接口,
false 否则。
|
boolean |
Elements.overrides(ExecutableElement overrider, ExecutableElement overridden, TypeElement type)
测试是一种方法,作为一个成员的一个给定的类型,覆盖的另一种方法。
|
R |
ElementKindVisitor6.visitType(TypeElement e, P p)
|
R |
SimpleElementVisitor6.visitType(TypeElement e, P p)
访问类型元素。
|
R |
ElementScanner6.visitType(TypeElement e, P p)
访问类型元素。
|
R |
ElementKindVisitor6.visitTypeAsAnnotationType(TypeElement e, P p)
访问一个
ANNOTATION_TYPE 型单元通过调用
defaultAction 。
|
R |
ElementKindVisitor6.visitTypeAsClass(TypeElement e, P p)
访问一个
CLASS 型单元通过调用
defaultAction 。
|
R |
ElementKindVisitor6.visitTypeAsEnum(TypeElement e, P p)
访问一个
ENUM 型单元通过调用
defaultAction 。
|
R |
ElementKindVisitor6.visitTypeAsInterface(TypeElement e, P p)
访问一个
INTERFACE 型单元通过调用
defaultAction 。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.