Package io.sundr.adapter.apt
Class AptContext
- java.lang.Object
-
- io.sundr.model.AttributeSupport
-
- io.sundr.adapter.apt.AptContext
-
- All Implemented Interfaces:
io.sundr.adapter.api.AdapterContextAware,io.sundr.model.Attributeable,io.sundr.model.Node
public class AptContext extends io.sundr.model.AttributeSupport implements io.sundr.adapter.api.AdapterContextAware
-
-
Field Summary
-
Fields inherited from interface io.sundr.model.Attributeable
ALSO_IMPORT, DEFAULT_VALUE, INIT, INIT_FUNCTION, LAZY_INIT
-
Fields inherited from interface io.sundr.model.Node
AT, CB, CC, CLP, COLN, COMA, CP, DOT, DQ, EMPTY, EQ, EXTENDS, GT, IMPLEMENTS, INDENT, JAVA_LANG, JAVA_LANG_ENUM, JAVA_LANG_OBJECT, JAVA_LANG_STRING, LT, NEWLINE, NEWLINE_PATTERN, OB, OC, OP, Q, SEMICOLN, SEMICOLN_SUFFIX_PATTERN, SPACE, STAR, THROWS, VARARG
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReference(TypeElement element)static AptContextcreate(io.sundr.adapter.api.AdapterContext adapterContext)static AptContextcreate(Elements elements, Types types)static AptContextcreate(Elements elements, Types types, io.sundr.model.repo.DefinitionRepository repository)io.sundr.adapter.api.AdapterContextgetAdapterContext()static AptContextgetContext()io.sundr.model.repo.DefinitionRepositorygetDefinitionRepository()ElementsgetElements()Set<TypeElement>getReferences()TypesgetTypes()booleanisDeep()-
Methods inherited from class io.sundr.model.AttributeSupport
getAttribute, getAttributes, hasAttribute
-
-
-
-
Method Detail
-
create
public static AptContext create(io.sundr.adapter.api.AdapterContext adapterContext)
-
create
public static AptContext create(Elements elements, Types types)
-
create
public static AptContext create(Elements elements, Types types, io.sundr.model.repo.DefinitionRepository repository)
-
getContext
public static AptContext getContext()
-
getTypes
public Types getTypes()
-
getElements
public Elements getElements()
-
isDeep
public boolean isDeep()
-
getAdapterContext
public io.sundr.adapter.api.AdapterContext getAdapterContext()
- Specified by:
getAdapterContextin interfaceio.sundr.adapter.api.AdapterContextAware
-
getDefinitionRepository
public io.sundr.model.repo.DefinitionRepository getDefinitionRepository()
-
getReferences
public Set<TypeElement> getReferences()
-
addReference
public void addReference(TypeElement element)
-
-