| 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.STRING |
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 |
ClassRefFluent.buildDefinition() |
TypeDef |
ClassRefFluentImpl.buildDefinition() |
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<TypeDefBuilder> predicate) |
TypeDef |
TypeDefFluent.buildMatchingInnerType(Predicate<TypeDefBuilder> 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 |
|---|---|
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 |
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<java.lang.String> comments,
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<java.lang.String> comments,
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<java.lang.String> comments,
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<java.lang.String> comments,
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.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[] 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 java.util.Set<TypeDef> |
TypeUtils.unrollHierarchy(TypeDef typeDef)
Unrolls the hierararchy of a specified type.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<Property> |
TypeUtils.allProperties(TypeDef typeDef)
All properties (including inherited).
|
static Method |
Getter.find(TypeDef clazz,
Property property)
Find the getter of the specified property in the type.
|
static Method |
Getter.find(TypeDef clazz,
Property property,
boolean acceptPrefixless)
Find the getter of the specified property in the type.
|
static boolean |
Setter.has(TypeDef clazz,
Property property) |
static boolean |
TypeUtils.hasMethod(TypeDef typeDef,
java.lang.String method)
Check if method exists on the specified type.
|
static boolean |
Setter.hasOrInherits(TypeDef clazz,
Property property) |
static boolean |
TypeUtils.hasProperty(TypeDef typeDef,
java.lang.String property)
Checks if property exists on the specified type.
|
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 java.util.Set<TypeDef> |
TypeUtils.unrollHierarchy(TypeDef typeDef)
Unrolls the hierararchy of a specified type.
|
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 © 2019. All Rights Reserved.