public final class ASTTypeLoader extends Object implements TypeLoader
TypeLoader
implementation which works with the Java AST.Constructor and Description |
---|
ASTTypeLoader(ProcessingEnvironment processingEnvironment) |
ASTTypeLoader(ProcessingEnvironment processingEnvironment,
List<TypeHandler> handlers,
ObjectFieldHandler objectFieldHandler) |
Modifier and Type | Method and Description |
---|---|
Optional<MetadataType> |
load(String typeIdentifier)
Returns the MetadataType of the specified identifier if found
|
Optional<MetadataType> |
load(TypeMirror typeMirror)
Given a
TypeMirror introspect it an returns the correspondent MetadataType |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
load
public ASTTypeLoader(ProcessingEnvironment processingEnvironment)
public ASTTypeLoader(ProcessingEnvironment processingEnvironment, List<TypeHandler> handlers, ObjectFieldHandler objectFieldHandler)
public Optional<MetadataType> load(TypeMirror typeMirror)
TypeMirror
introspect it an returns the correspondent MetadataType
typeMirror
- type to introspectMetadataType
public Optional<MetadataType> load(String typeIdentifier)
TypeLoader
load
in interface TypeLoader
typeIdentifier
- The identifier nameCopyright © 2018. All rights reserved.