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(String fullyQualifiedName) |
TypeDef |
DefinitionRepository.getDefinition(TypeRef type) |
TypeDef |
DefinitionRepository.register(TypeDef definition) |
TypeDef |
DefinitionRepository.register(TypeDef definition,
AttributeKey<Boolean>... flags) |
TypeDef |
DefinitionRepository.register(TypeDef definition,
String... flags) |
TypeDef |
DefinitionRepository.registerIfAbsent(TypeDef definition) |
Modifier and Type | Method and Description |
---|---|
Collection<TypeDef> |
DefinitionRepository.getDefinitions() |
Set<TypeDef> |
DefinitionRepository.getDefinitions(AttributeKey<Boolean>... attributeKeys) |
Set<TypeDef> |
DefinitionRepository.getDefinitions(String... flags) |
Modifier and Type | Method and Description |
---|---|
TypeDef |
DefinitionRepository.register(TypeDef definition) |
TypeDef |
DefinitionRepository.register(TypeDef definition,
AttributeKey<Boolean>... flags) |
TypeDef |
DefinitionRepository.register(TypeDef definition,
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<String,TypeDef> |
Sources.FROM_CLASSPATH_TO_SINGLE_TYPEDEF |
static Function<InputStream,TypeDef> |
Sources.FROM_INPUTSTEAM_TO_SINGLE_TYPEDEF |
static Function<TypeElement,TypeDef> |
ElementTo.INTERNAL_TYPEDEF |
static Function<TypeElement,TypeDef> |
ElementTo.SHALLOW_TYPEDEF |
static Function<com.github.javaparser.ast.body.TypeDeclaration,TypeDef> |
Sources.TYPEDEF |
static Function<TypeElement,TypeDef> |
ElementTo.TYPEDEF |
static Function<Class,TypeDef> |
ClassTo.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 |
ClassRefFluentImpl.buildDefinition() |
TypeDef |
ClassRefFluent.buildDefinition() |
TypeDef |
TypeDefFluentImpl.buildFirstInnerType() |
TypeDef |
TypeDefFluent.buildFirstInnerType() |
TypeDef |
SourceFluentImpl.buildFirstType() |
TypeDef |
SourceFluent.buildFirstType() |
TypeDef |
TypeDefFluentImpl.buildInnerType(int index) |
TypeDef |
TypeDefFluent.buildInnerType(int index) |
TypeDef |
TypeDefFluentImpl.buildLastInnerType() |
TypeDef |
TypeDefFluent.buildLastInnerType() |
TypeDef |
SourceFluentImpl.buildLastType() |
TypeDef |
SourceFluent.buildLastType() |
TypeDef |
TypeDefFluentImpl.buildMatchingInnerType(Predicate<TypeDefBuilder> predicate) |
TypeDef |
TypeDefFluent.buildMatchingInnerType(Predicate<TypeDefBuilder> predicate) |
TypeDef |
SourceFluentImpl.buildMatchingType(Predicate<Builder<? extends TypeDef>> predicate) |
TypeDef |
SourceFluent.buildMatchingType(Predicate<Builder<? extends TypeDef>> predicate) |
TypeDef |
TypeDefFluentImpl.buildOuterType() |
TypeDef |
TypeDefFluent.buildOuterType() |
TypeDef |
SourceFluentImpl.buildType(int index) |
TypeDef |
SourceFluent.buildType(int index) |
TypeDef |
ClassRefFluentImpl.getDefinition()
Deprecated.
|
TypeDef |
ClassRefFluent.getDefinition()
Deprecated.
|
TypeDef |
ClassRef.getDefinition() |
TypeDef |
TypeDefFluentImpl.getOuterType()
Deprecated.
|
TypeDef |
TypeDefFluent.getOuterType()
Deprecated.
|
TypeDef |
TypeDef.getOuterType() |
Modifier and Type | Method and Description |
---|---|
List<TypeDef> |
TypeDefFluentImpl.buildInnerTypes() |
List<TypeDef> |
TypeDefFluent.buildInnerTypes() |
List<TypeDef> |
SourceFluentImpl.buildTypes() |
List<TypeDef> |
SourceFluent.buildTypes() |
List<TypeDef> |
TypeDefFluentImpl.getInnerTypes()
Deprecated.
|
List<TypeDef> |
TypeDefFluent.getInnerTypes()
Deprecated.
|
List<TypeDef> |
TypeDef.getInnerTypes() |
List<TypeDef> |
SourceFluentImpl.getTypes()
Deprecated.
|
List<TypeDef> |
SourceFluent.getTypes()
Deprecated.
|
List<TypeDef> |
Source.getTypes() |
Modifier and Type | Method and Description |
---|---|
A |
TypeDefFluentImpl.addAllToInnerTypes(Collection<TypeDef> items) |
A |
TypeDefFluent.addAllToInnerTypes(Collection<TypeDef> items) |
A |
SourceFluentImpl.addAllToTypes(Collection<TypeDef> items) |
A |
SourceFluent.addAllToTypes(Collection<TypeDef> items) |
TypeDef |
SourceFluentImpl.buildMatchingType(Predicate<Builder<? extends TypeDef>> predicate) |
TypeDef |
SourceFluent.buildMatchingType(Predicate<Builder<? extends TypeDef>> predicate) |
A |
TypeDefFluentImpl.removeAllFromInnerTypes(Collection<TypeDef> items) |
A |
TypeDefFluent.removeAllFromInnerTypes(Collection<TypeDef> items) |
A |
SourceFluentImpl.removeAllFromTypes(Collection<TypeDef> items) |
A |
SourceFluent.removeAllFromTypes(Collection<TypeDef> items) |
A |
TypeDefFluentImpl.withInnerTypes(List<TypeDef> innerTypes) |
A |
TypeDefFluent.withInnerTypes(List<TypeDef> innerTypes) |
A |
SourceFluentImpl.withTypes(List<TypeDef> types) |
A |
SourceFluent.withTypes(List<TypeDef> types) |
Constructor and Description |
---|
ClassRef(TypeDef definition,
String fullyQualifiedName,
int dimensions,
List<TypeRef> arguments,
Map<AttributeKey,Object> attributes) |
EditableClassRef(TypeDef definition,
String fullyQualifiedName,
int dimensions,
List<TypeRef> arguments,
Map<AttributeKey,Object> attributes) |
EditableTypeDef(Kind kind,
String packageName,
String name,
List<String> comments,
List<AnnotationRef> annotations,
List<ClassRef> extendsList,
List<ClassRef> implementsList,
List<TypeParamDef> parameters,
List<Property> properties,
List<Method> constructors,
List<Method> methods,
TypeDef outerType,
List<TypeDef> innerTypes,
int modifiers,
Map<AttributeKey,Object> attributes) |
TypeDef(Kind kind,
String packageName,
String name,
List<String> comments,
List<AnnotationRef> annotations,
List<ClassRef> extendsList,
List<ClassRef> implementsList,
List<TypeParamDef> parameters,
List<Property> properties,
List<Method> constructors,
List<Method> methods,
TypeDef outerType,
List<TypeDef> innerTypes,
int modifiers,
Map<AttributeKey,Object> attributes) |
TypeDefBuilder(TypeDef instance) |
TypeDefBuilder(TypeDef instance,
Boolean validationEnabled) |
TypeDefBuilder(TypeDefFluent<?> fluent,
TypeDef instance) |
TypeDefBuilder(TypeDefFluent<?> fluent,
TypeDef instance,
Boolean validationEnabled) |
TypeDefFluentImpl(TypeDef instance) |
Constructor and Description |
---|
EditableSource(List<TypeDef> types) |
EditableTypeDef(Kind kind,
String packageName,
String name,
List<String> comments,
List<AnnotationRef> annotations,
List<ClassRef> extendsList,
List<ClassRef> implementsList,
List<TypeParamDef> parameters,
List<Property> properties,
List<Method> constructors,
List<Method> methods,
TypeDef outerType,
List<TypeDef> innerTypes,
int modifiers,
Map<AttributeKey,Object> attributes) |
Source(List<TypeDef> types) |
TypeDef(Kind kind,
String packageName,
String name,
List<String> comments,
List<AnnotationRef> annotations,
List<ClassRef> extendsList,
List<ClassRef> implementsList,
List<TypeParamDef> parameters,
List<Property> properties,
List<Method> constructors,
List<Method> methods,
TypeDef outerType,
List<TypeDef> innerTypes,
int modifiers,
Map<AttributeKey,Object> attributes) |
Modifier and Type | Method and Description |
---|---|
<T> TypeDef |
JavaGeneratingProcessor.createTypeFromTemplate(T model,
String[] parameters,
String content)
Generate a
TypeDef from the specified model, parameters and template. |
Modifier and Type | Method and Description |
---|---|
void |
JavaGeneratingProcessor.generateFromResources(TypeDef model,
JavaFileObject fileObject,
String resourceName)
Generates a source file from the specified
TypeDef . |
void |
JavaGeneratingProcessor.generateFromResources(TypeDef model,
String resourceName)
Generates a source file from the specified
TypeDef . |
void |
JavaGeneratingProcessor.generateFromStringTemplate(TypeDef model,
String[] parameters,
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 Set<TypeDef> |
TypeUtils.unrollHierarchy(TypeDef typeDef)
Unrolls the hierararchy of a specified type.
|
Modifier and Type | Method and Description |
---|---|
static 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,
String method)
Check if method exists on the specified type.
|
static boolean |
Setter.hasOrInherits(TypeDef clazz,
Property property) |
static boolean |
TypeUtils.hasProperty(TypeDef typeDef,
String property)
Checks if property exists on the specified type.
|
static boolean |
TypeUtils.isInstanceOf(TypeRef type,
TypeDef targetType,
Function<TypeRef,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 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,
List<TypeDef> types) |
static void |
TypeUtils.visitParents(TypeDef type,
List<TypeDef> types,
List<TypeDef> visited) |
Modifier and Type | Method and Description |
---|---|
static void |
TypeUtils.visitParents(TypeDef type,
List<TypeDef> types) |
static void |
TypeUtils.visitParents(TypeDef type,
List<TypeDef> types,
List<TypeDef> visited) |
static void |
TypeUtils.visitParents(TypeDef type,
List<TypeDef> types,
List<TypeDef> visited) |
Copyright © 2019 JBoss by Red Hat. All rights reserved.