public class GraphNodeVerifier extends Object
Modifier and Type | Field and Description |
---|---|
private Elements |
elements |
private GraphNodeProcessor |
env |
private TypeElement |
Input |
(package private) TypeElement |
Node |
private TypeElement |
NodeInputList |
private TypeElement |
NodeSuccessorList |
private TypeElement |
object |
private TypeElement |
OptionalInput |
private TypeElement |
Successor |
private Types |
types |
Constructor and Description |
---|
GraphNodeVerifier(GraphNodeProcessor processor) |
Modifier and Type | Method and Description |
---|---|
private AnnotationMirror |
findAnnotationMirror(List<? extends AnnotationMirror> mirrors,
TypeElement expectedAnnotationType) |
ProcessingEnvironment |
getProcessingEnv() |
private TypeElement |
getSuperType(TypeElement element) |
TypeMirror |
getType(String name) |
TypeElement |
getTypeElement(Class<?> cls) |
TypeElement |
getTypeElement(String name)
Returns a type element given a canonical name.
|
boolean |
isAssignableWithErasure(Element from,
Element to) |
private boolean |
isObject(TypeMirror type) |
private boolean |
sameType(TypeMirror type1,
TypeMirror type2) |
private void |
scanFields(TypeElement node) |
(package private) void |
verify(TypeElement node) |
private final GraphNodeProcessor env
private final TypeElement Input
private final TypeElement OptionalInput
private final TypeElement Successor
final TypeElement Node
private final TypeElement NodeInputList
private final TypeElement NodeSuccessorList
private final TypeElement object
public GraphNodeVerifier(GraphNodeProcessor processor)
public TypeElement getTypeElement(String name)
public TypeElement getTypeElement(Class<?> cls)
public TypeMirror getType(String name)
public ProcessingEnvironment getProcessingEnv()
public boolean isAssignableWithErasure(Element from, Element to)
private void scanFields(TypeElement node)
private AnnotationMirror findAnnotationMirror(List<? extends AnnotationMirror> mirrors, TypeElement expectedAnnotationType)
private boolean isObject(TypeMirror type)
private boolean sameType(TypeMirror type1, TypeMirror type2)
private TypeElement getSuperType(TypeElement element)
void verify(TypeElement node)