| Package | Description |
|---|---|
| io.sundr.codegen | |
| io.sundr.codegen.converters.parser | |
| io.sundr.codegen.functions | |
| io.sundr.codegen.model | |
| io.sundr.codegen.processor | |
| io.sundr.codegen.utils |
| Modifier and Type | Field and Description |
|---|---|
static TypeDef |
Constants.ARRAY |
static TypeDef |
Constants.BOOLEAN |
static TypeDef |
Constants.BOXED_VOID |
static TypeDef |
Constants.CLASS |
static TypeDef |
Constants.GENERIC_ARRAY_TYPE |
static TypeDef |
Constants.OBJECT |
static TypeDef |
Constants.PARAMETERIZED_TYPE |
static TypeDef |
Constants.TYPE |
static TypeDef |
Constants.TYPE_VARIABLE |
| Modifier and Type | Method and Description |
|---|---|
TypeDef |
DefinitionRepository.getDefinition(java.lang.String fullyQualifiedName) |
TypeDef |
DefinitionRepository.getDefinition(TypeRef type) |
TypeDef |
DefinitionRepository.register(TypeDef definition) |
TypeDef |
DefinitionRepository.register(TypeDef definition,
AttributeKey<java.lang.Boolean>... flags) |
TypeDef |
DefinitionRepository.register(TypeDef definition,
java.lang.String... flags) |
TypeDef |
DefinitionRepository.registerIfAbsent(TypeDef definition) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<TypeDef> |
DefinitionRepository.getDefinitions() |
java.util.Set<TypeDef> |
DefinitionRepository.getDefinitions(AttributeKey<java.lang.Boolean>... attributeKeys) |
java.util.Set<TypeDef> |
DefinitionRepository.getDefinitions(java.lang.String... flags) |
| Modifier and Type | Method and Description |
|---|---|
TypeDef |
DefinitionRepository.register(TypeDef definition) |
TypeDef |
DefinitionRepository.register(TypeDef definition,
AttributeKey<java.lang.Boolean>... flags) |
TypeDef |
DefinitionRepository.register(TypeDef definition,
java.lang.String... flags) |
TypeDef |
DefinitionRepository.registerIfAbsent(TypeDef definition) |
| Modifier and Type | Method and Description |
|---|---|
TypeDef |
DeclarationToJavaClazz.apply(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration item) |
TypeDef |
ClassOrInterfaceTypeToTypeDef.apply(com.github.javaparser.ast.type.ClassOrInterfaceType item) |
| Modifier and Type | Field and Description |
|---|---|
static TypeDef |
Collections.ARRAY_LIST |
static TypeDef |
Collections.COLLECTION |
static TypeDef |
Collections.LINKED_HASH_MAP |
static TypeDef |
Collections.LINKED_HASH_SET |
static TypeDef |
Collections.LIST |
static TypeDef |
Collections.MAP |
static TypeDef |
Optionals.OPTIONAL |
static TypeDef |
Optionals.OPTIONAL_DOUBLE |
static TypeDef |
Optionals.OPTIONAL_INT |
static TypeDef |
Optionals.OPTIONAL_LONG |
static TypeDef |
Collections.SET |
| Modifier and Type | Field and Description |
|---|---|
static Function<java.lang.String,TypeDef> |
Sources.FROM_CLASSPATH_TO_SINGLE_TYPEDEF |
static Function<java.io.InputStream,TypeDef> |
Sources.FROM_INPUTSTEAM_TO_SINGLE_TYPEDEF |
static Function<javax.lang.model.element.TypeElement,TypeDef> |
ElementTo.INTERNAL_TYPEDEF |
static Function<javax.lang.model.element.TypeElement,TypeDef> |
ElementTo.SHALLOW_TYPEDEF |
static Function<com.github.javaparser.ast.body.TypeDeclaration,TypeDef> |
Sources.TYPEDEF |
static Function<java.lang.Class,TypeDef> |
ClassTo.TYPEDEF |
static Function<javax.lang.model.element.TypeElement,TypeDef> |
ElementTo.TYPEDEF |
| Modifier and Type | Class and Description |
|---|---|
class |
EditableTypeDef |
| Modifier and Type | Field and Description |
|---|---|
static TypeDef |
TypeDef.ENUM |
static TypeDef |
TypeDef.OBJECT |
| Modifier and Type | Method and Description |
|---|---|
TypeDef |
TypeDefFluentImpl.buildFirstInnerType() |
TypeDef |
TypeDefFluent.buildFirstInnerType() |
TypeDef |
SourceFluent.buildFirstType() |
TypeDef |
SourceFluentImpl.buildFirstType() |
TypeDef |
TypeDefFluentImpl.buildInnerType(int index) |
TypeDef |
TypeDefFluent.buildInnerType(int index) |
TypeDef |
TypeDefFluentImpl.buildLastInnerType() |
TypeDef |
TypeDefFluent.buildLastInnerType() |
TypeDef |
SourceFluent.buildLastType() |
TypeDef |
SourceFluentImpl.buildLastType() |
TypeDef |
TypeDefFluentImpl.buildMatchingInnerType(Predicate<Builder<? extends TypeDef>> predicate) |
TypeDef |
TypeDefFluent.buildMatchingInnerType(Predicate<Builder<? extends TypeDef>> predicate) |
TypeDef |
SourceFluent.buildMatchingType(Predicate<Builder<? extends TypeDef>> predicate) |
TypeDef |
SourceFluentImpl.buildMatchingType(Predicate<Builder<? extends TypeDef>> predicate) |
TypeDef |
TypeDefFluentImpl.buildOuterType() |
TypeDef |
TypeDefFluent.buildOuterType() |
TypeDef |
SourceFluent.buildType(int index) |
TypeDef |
SourceFluentImpl.buildType(int index) |
TypeDef |
ClassRefFluent.getDefinition()
Deprecated.
|
TypeDef |
ClassRef.getDefinition() |
TypeDef |
ClassRefFluentImpl.getDefinition()
Deprecated.
|
TypeDef |
TypeDef.getOuterType() |
TypeDef |
TypeDefFluentImpl.getOuterType()
Deprecated.
|
TypeDef |
TypeDefFluent.getOuterType()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<TypeDef> |
TypeDefFluentImpl.buildInnerTypes() |
java.util.List<TypeDef> |
TypeDefFluent.buildInnerTypes() |
java.util.List<TypeDef> |
SourceFluent.buildTypes() |
java.util.List<TypeDef> |
SourceFluentImpl.buildTypes() |
java.util.List<TypeDef> |
TypeDef.getInnerTypes() |
java.util.List<TypeDef> |
TypeDefFluentImpl.getInnerTypes()
Deprecated.
|
java.util.List<TypeDef> |
TypeDefFluent.getInnerTypes()
Deprecated.
|
java.util.List<TypeDef> |
Source.getTypes() |
java.util.List<TypeDef> |
SourceFluent.getTypes()
Deprecated.
|
java.util.List<TypeDef> |
SourceFluentImpl.getTypes()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
TypeDefFluent.InnerTypesNested<A> |
TypeDefFluentImpl.addNewInnerTypeLike(TypeDef item) |
TypeDefFluent.InnerTypesNested<A> |
TypeDefFluent.addNewInnerTypeLike(TypeDef item) |
SourceFluent.TypesNested<A> |
SourceFluent.addNewTypeLike(TypeDef item) |
SourceFluent.TypesNested<A> |
SourceFluentImpl.addNewTypeLike(TypeDef item) |
A |
TypeDefFluentImpl.addToInnerTypes(int index,
TypeDef item) |
A |
TypeDefFluent.addToInnerTypes(int index,
TypeDef item) |
A |
TypeDefFluentImpl.addToInnerTypes(TypeDef... items) |
A |
TypeDefFluent.addToInnerTypes(TypeDef... items) |
A |
SourceFluent.addToTypes(int index,
TypeDef item) |
A |
SourceFluentImpl.addToTypes(int index,
TypeDef item) |
A |
SourceFluent.addToTypes(TypeDef... items) |
A |
SourceFluentImpl.addToTypes(TypeDef... items) |
TypeDefFluent.OuterTypeNested<A> |
TypeDefFluentImpl.editOrNewOuterTypeLike(TypeDef item) |
TypeDefFluent.OuterTypeNested<A> |
TypeDefFluent.editOrNewOuterTypeLike(TypeDef item) |
boolean |
TypeDef.isAssignableFrom(TypeDef o) |
A |
TypeDefFluentImpl.removeFromInnerTypes(TypeDef... items) |
A |
TypeDefFluent.removeFromInnerTypes(TypeDef... items) |
A |
SourceFluent.removeFromTypes(TypeDef... items) |
A |
SourceFluentImpl.removeFromTypes(TypeDef... items) |
A |
TypeDefFluentImpl.setToInnerTypes(int index,
TypeDef item) |
A |
TypeDefFluent.setToInnerTypes(int index,
TypeDef item) |
A |
SourceFluent.setToTypes(int index,
TypeDef item) |
A |
SourceFluentImpl.setToTypes(int index,
TypeDef item) |
A |
ClassRefFluent.withDefinition(TypeDef definition) |
A |
ClassRefFluentImpl.withDefinition(TypeDef definition) |
A |
TypeDefFluentImpl.withInnerTypes(TypeDef... innerTypes) |
A |
TypeDefFluent.withInnerTypes(TypeDef... innerTypes) |
ClassRefFluent.DefinitionNested<A> |
ClassRefFluent.withNewDefinitionLike(TypeDef item) |
ClassRefFluent.DefinitionNested<A> |
ClassRefFluentImpl.withNewDefinitionLike(TypeDef item) |
TypeDefFluent.OuterTypeNested<A> |
TypeDefFluentImpl.withNewOuterTypeLike(TypeDef item) |
TypeDefFluent.OuterTypeNested<A> |
TypeDefFluent.withNewOuterTypeLike(TypeDef item) |
A |
TypeDefFluentImpl.withOuterType(TypeDef outerType) |
A |
TypeDefFluent.withOuterType(TypeDef outerType) |
A |
SourceFluent.withTypes(TypeDef... types) |
A |
SourceFluentImpl.withTypes(TypeDef... types) |
| Modifier and Type | Method and Description |
|---|---|
A |
TypeDefFluentImpl.addAllToInnerTypes(java.util.Collection<TypeDef> items) |
A |
TypeDefFluent.addAllToInnerTypes(java.util.Collection<TypeDef> items) |
A |
SourceFluent.addAllToTypes(java.util.Collection<TypeDef> items) |
A |
SourceFluentImpl.addAllToTypes(java.util.Collection<TypeDef> items) |
TypeDef |
TypeDefFluentImpl.buildMatchingInnerType(Predicate<Builder<? extends TypeDef>> predicate) |
TypeDef |
TypeDefFluent.buildMatchingInnerType(Predicate<Builder<? extends TypeDef>> predicate) |
TypeDef |
SourceFluent.buildMatchingType(Predicate<Builder<? extends TypeDef>> predicate) |
TypeDef |
SourceFluentImpl.buildMatchingType(Predicate<Builder<? extends TypeDef>> predicate) |
A |
TypeDefFluentImpl.removeAllFromInnerTypes(java.util.Collection<TypeDef> items) |
A |
TypeDefFluent.removeAllFromInnerTypes(java.util.Collection<TypeDef> items) |
A |
SourceFluent.removeAllFromTypes(java.util.Collection<TypeDef> items) |
A |
SourceFluentImpl.removeAllFromTypes(java.util.Collection<TypeDef> items) |
A |
TypeDefFluentImpl.withInnerTypes(java.util.List<TypeDef> innerTypes) |
A |
TypeDefFluent.withInnerTypes(java.util.List<TypeDef> innerTypes) |
A |
SourceFluent.withTypes(java.util.List<TypeDef> types) |
A |
SourceFluentImpl.withTypes(java.util.List<TypeDef> types) |
| Constructor and Description |
|---|
ClassRef(TypeDef definition,
java.lang.String fullyQualifiedName,
int dimensions,
java.util.List<TypeRef> arguments,
java.util.Map<AttributeKey,java.lang.Object> attributes) |
EditableClassRef(TypeDef definition,
java.lang.String fullyQualifiedName,
int dimensions,
java.util.List<TypeRef> arguments,
java.util.Map<AttributeKey,java.lang.Object> attributes) |
EditableTypeDef(Kind kind,
java.lang.String packageName,
java.lang.String name,
java.util.List<AnnotationRef> annotations,
java.util.List<ClassRef> extendsList,
java.util.List<ClassRef> implementsList,
java.util.List<TypeParamDef> parameters,
java.util.List<Property> properties,
java.util.List<Method> constructors,
java.util.List<Method> methods,
TypeDef outerType,
java.util.List<TypeDef> innerTypes,
int modifiers,
java.util.Map<AttributeKey,java.lang.Object> attributes) |
TypeDef(Kind kind,
java.lang.String packageName,
java.lang.String name,
java.util.List<AnnotationRef> annotations,
java.util.List<ClassRef> extendsList,
java.util.List<ClassRef> implementsList,
java.util.List<TypeParamDef> parameters,
java.util.List<Property> properties,
java.util.List<Method> constructors,
java.util.List<Method> methods,
TypeDef outerType,
java.util.List<TypeDef> innerTypes,
int modifiers,
java.util.Map<AttributeKey,java.lang.Object> attributes) |
TypeDefBuilder(TypeDef instance) |
TypeDefBuilder(TypeDef instance,
java.lang.Boolean validationEnabled) |
TypeDefBuilder(TypeDefFluent<?> fluent,
TypeDef instance) |
TypeDefBuilder(TypeDefFluent<?> fluent,
TypeDef instance,
java.lang.Boolean validationEnabled) |
TypeDefFluentImpl(TypeDef instance) |
| Constructor and Description |
|---|
EditableSource(java.util.List<TypeDef> types) |
EditableTypeDef(Kind kind,
java.lang.String packageName,
java.lang.String name,
java.util.List<AnnotationRef> annotations,
java.util.List<ClassRef> extendsList,
java.util.List<ClassRef> implementsList,
java.util.List<TypeParamDef> parameters,
java.util.List<Property> properties,
java.util.List<Method> constructors,
java.util.List<Method> methods,
TypeDef outerType,
java.util.List<TypeDef> innerTypes,
int modifiers,
java.util.Map<AttributeKey,java.lang.Object> attributes) |
Source(java.util.List<TypeDef> types) |
TypeDef(Kind kind,
java.lang.String packageName,
java.lang.String name,
java.util.List<AnnotationRef> annotations,
java.util.List<ClassRef> extendsList,
java.util.List<ClassRef> implementsList,
java.util.List<TypeParamDef> parameters,
java.util.List<Property> properties,
java.util.List<Method> constructors,
java.util.List<Method> methods,
TypeDef outerType,
java.util.List<TypeDef> innerTypes,
int modifiers,
java.util.Map<AttributeKey,java.lang.Object> attributes) |
| Modifier and Type | Method and Description |
|---|---|
<T> TypeDef |
JavaGeneratingProcessor.createTypeFromTemplate(T model,
java.lang.String[] parameters,
java.lang.String content)
Generate a
TypeDef from the specified model, parameters and template. |
| Modifier and Type | Method and Description |
|---|---|
void |
JavaGeneratingProcessor.createFromStringTemplate(TypeDef model,
java.lang.String content)
Create a source file from the specified
TypeDef. |
void |
JavaGeneratingProcessor.generateFromResources(TypeDef model,
javax.tools.JavaFileObject fileObject,
java.lang.String resourceName)
Generates a source file from the specified
TypeDef. |
void |
JavaGeneratingProcessor.generateFromResources(TypeDef model,
java.lang.String resourceName)
Generates a source file from the specified
TypeDef. |
void |
JavaGeneratingProcessor.generateFromStringTemplate(TypeDef model,
java.lang.String content)
Generates a source file from the specified
TypeDef. |
void |
JavaGeneratingProcessor.generateFromStringTemplate(TypeDef model,
java.lang.String[] parameters,
java.lang.String content)
Generates a source file from the specified
TypeDef. |
| Modifier and Type | Method and Description |
|---|---|
static TypeDef |
TypeUtils.typeExtends(TypeDef base,
ClassRef superClass)
Sets one
TypeDef as a super class of an other. |
static TypeDef |
TypeUtils.typeGenericOf(TypeDef base,
TypeParamDef... parameters)
Sets one
TypeDef as a generic of an other. |
static TypeDef |
TypeUtils.typeImplements(TypeDef base,
ClassRef... superClass)
Sets one
TypeDef as an interface of an other. |
static TypeDef |
TypeUtils.unwrapGeneric(TypeDef base)
Removes parameters from a TypeDef.
|
| Modifier and Type | Method and Description |
|---|---|
static Method |
Getter.find(TypeDef clazz,
Property property) |
static boolean |
Setter.has(TypeDef clazz,
Property property) |
static boolean |
Setter.hasOrInherits(TypeDef clazz,
Property property) |
static boolean |
TypeUtils.isInstanceOf(TypeRef type,
TypeDef targetType,
Function<TypeRef,java.lang.Boolean> function)
|
static TypeDef |
TypeUtils.typeExtends(TypeDef base,
ClassRef superClass)
Sets one
TypeDef as a super class of an other. |
static TypeDef |
TypeUtils.typeGenericOf(TypeDef base,
TypeParamDef... parameters)
Sets one
TypeDef as a generic of an other. |
static TypeDef |
TypeUtils.typeImplements(TypeDef base,
ClassRef... superClass)
Sets one
TypeDef as an interface of an other. |
static TypeDef |
TypeUtils.unwrapGeneric(TypeDef base)
Removes parameters from a TypeDef.
|
static void |
TypeUtils.visitParents(TypeDef type,
java.util.List<TypeDef> types) |
static void |
TypeUtils.visitParents(TypeDef type,
java.util.List<TypeDef> types,
java.util.List<TypeDef> visited) |
| Modifier and Type | Method and Description |
|---|---|
static void |
TypeUtils.visitParents(TypeDef type,
java.util.List<TypeDef> types) |
static void |
TypeUtils.visitParents(TypeDef type,
java.util.List<TypeDef> types,
java.util.List<TypeDef> visited) |
static void |
TypeUtils.visitParents(TypeDef type,
java.util.List<TypeDef> types,
java.util.List<TypeDef> visited) |
Copyright © 2018. All Rights Reserved.