| Modifier and Type | Class and Description |
|---|---|
| public static class | ClassBuilderInfo.
Contains information about annotation to place on classes, members or methods. |
| public static class | ClassBuilderInfo.
Pojo which represents a class constructor. |
| public static class | ClassBuilderInfo.
Pojo which represents a class method. |
| public static enum | ClassBuilderInfo.
Enum to define either the |
| public static class | ClassBuilderInfo.
Pojo which represents a class member/field or argument. |
| Modifier and Type | Field and Description |
|---|---|
| private final List | annotations
Annotations of this class. |
| private final String | argumentPrefix
Prefix to prepend to method/constructor arguments. |
| private String | className
Name of this class. |
| private ClassBuilderInfo. | classType
Type of this class (interface or class). |
| private final List | constructors
Constructors for this class. |
| private String | dbusPackageName
Package name used by DBus. |
| private static final String | |
| private String | extendClass
Class which this class may extend. |
| private final Set | implementedInterfaces
Interfaces implemented by this class. |
| private final Set | imports
Imported files for this class. |
| private final List | innerClasses
Inner classes inside of this class. |
| private final List | members
Members/Fields of this class. |
| private final List | methods
Methods provided by this class. |
| private String | packageName
Package of this class. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ClassBuilderInfo(String
prepend given prefix to all method/constructor arguments _argumentPrefix)Create new instance. |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public String | |
| private List | createClassFileContent(boolean
this is static inner class _staticClass, Set<String> this class needs additional imports (e.g. due to inner class) _otherImports)Create the Java source for the class information provided. |
| public List | |
| public String | |
| pack-priv static String | Returns: classname, null if input was nullfqcn to analyze _fqcn)Extract the class name from a given FQCN (fully qualified classname). |
| public ClassBuilderInfo. | |
| public List | |
| public String | |
| public String | |
| public String | Returns: String, null if class name was nullCreate the filename with path this java class should use. |
| public String | Returns: StringCreates the fully qualified classname based on the provided classname and package. |
| public Set | |
| public Set | |
| pack-priv static Set | Returns: set of classes required for importstype described in the string format _type)Get all classes that should be imported for the input type, this method works fine with generic types. |
| public List | |
| public List | |
| public List | |
| public String | |
| pack-priv static String | Returns: type with simplified class namestype described in the string format _type)Simplify class names in the type. |
| private static String | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String |
| annotations | back to summary |
|---|---|
| private final List<ClassBuilderInfo. Annotations of this class. | |
| argumentPrefix | back to summary |
|---|---|
| private final String argumentPrefix Prefix to prepend to method/constructor arguments. | |
| className | back to summary |
|---|---|
| private String className Name of this class. | |
| classType | back to summary |
|---|---|
| private ClassBuilderInfo. Type of this class (interface or class). | |
| constructors | back to summary |
|---|---|
| private final List<ClassBuilderInfo. Constructors for this class. | |
| dbusPackageName | back to summary |
|---|---|
| private String dbusPackageName Package name used by DBus. | |
| DEFAULT_INDENT | back to summary |
|---|---|
| private static final String DEFAULT_INDENT | |
| extendClass | back to summary |
|---|---|
| private String extendClass Class which this class may extend. | |
| implementedInterfaces | back to summary |
|---|---|
| private final Set<String> implementedInterfaces Interfaces implemented by this class. | |
| imports | back to summary |
|---|---|
| private final Set<String> imports Imported files for this class. | |
| innerClasses | back to summary |
|---|---|
| private final List<ClassBuilderInfo> innerClasses Inner classes inside of this class. | |
| members | back to summary |
|---|---|
| private final List<ClassBuilderInfo. Members/Fields of this class. | |
| methods | back to summary |
|---|---|
| private final List<ClassBuilderInfo. Methods provided by this class. | |
| packageName | back to summary |
|---|---|
| private String packageName Package of this class. | |
| ClassBuilderInfo | back to summary |
|---|---|
| public ClassBuilderInfo() Create new instance without argument prefix. | |
| ClassBuilderInfo | back to summary |
|---|---|
| public ClassBuilderInfo(String _argumentPrefix) Create new instance.
| |
| addEmptyLineIfNeeded | back to summary |
|---|---|
| private static void addEmptyLineIfNeeded(List<String> _content) | |
| createClassFileContent | back to summary |
|---|---|
| public String createClassFileContent() Create the Java source for the class information provided.
| |
| createClassFileContent | back to summary |
|---|---|
| private List Create the Java source for the class information provided. | |
| getAnnotations | back to summary |
|---|---|
| public List | |
| getClassName | back to summary |
|---|---|
| public String getClassName() | |
| getClassName | back to summary |
|---|---|
| pack-priv static String getClassName(String _fqcn) Extract the class name from a given FQCN (fully qualified classname). | |
| getClassType | back to summary |
|---|---|
| public ClassBuilderInfo. | |
| getConstructors | back to summary |
|---|---|
| public List | |
| getDbusPackageName | back to summary |
|---|---|
| public String getDbusPackageName() | |
| getExtendClass | back to summary |
|---|---|
| public String getExtendClass() | |
| getFileName | back to summary |
|---|---|
| public String getFileName() Create the filename with path this java class should use.
| |
| getFqcn | back to summary |
|---|---|
| public String getFqcn() Creates the fully qualified classname based on the provided classname and package.
| |
| getImplementedInterfaces | back to summary |
|---|---|
| public Set | |
| getImports | back to summary |
|---|---|
| public Set | |
| getImportsForType | back to summary |
|---|---|
| pack-priv static Set Get all classes that should be imported for the input type, this method works fine with generic types. Please go to unit tests for usage examples. | |
| getInnerClasses | back to summary |
|---|---|
| public List | |
| getMembers | back to summary |
|---|---|
| public List | |
| getMethods | back to summary |
|---|---|
| public List | |
| getPackageName | back to summary |
|---|---|
| public String getPackageName() | |
| getSimpleTypeClasses | back to summary |
|---|---|
| pack-priv static String getSimpleTypeClasses(String _type) Simplify class names in the type. Please go to unit tests for usage examples. | |
| maybePrefix | back to summary |
|---|---|
| private static String maybePrefix(String _arg, String _prefix) | |
| setClassName | back to summary |
|---|---|
| public void setClassName(String _className) | |
| setClassType | back to summary |
|---|---|
| public void setClassType(ClassBuilderInfo. | |
| setDbusPackageName | back to summary |
|---|---|
| public void setDbusPackageName(String _dbusPackageName) | |
| setExtendClass | back to summary |
|---|---|
| public void setExtendClass(String _extendClass) | |
| setPackageName | back to summary |
|---|---|
| public void setPackageName(String _packageName) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private final Class | annotationClass
Annotation class. |
| private final String | annotationParams
Annotation params (e.g. value = "foo", key = "bar"). |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Class | |
| public String |
| annotationClass | back to summary |
|---|---|
| private final Class<? extends Annotation> annotationClass Annotation class. | |
| annotationParams | back to summary |
|---|---|
| private final String annotationParams Annotation params (e.g. value = "foo", key = "bar"). | |
| AnnotationInfo | back to summary |
|---|---|
| public AnnotationInfo(Class<? extends Annotation> _annotationClass, String _annotationParams) | |
| getAnnotationClass | back to summary |
|---|---|
| public Class | |
| getAnnotationParams | back to summary |
|---|---|
| public String getAnnotationParams() | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | arguments
Map of arguments for the constructor. |
| private static final String | |
| private final List | superArguments
Map of arguments for the super-constructor. |
| private final List | throwArguments
List of throws arguments. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public List | |
| public List | |
| public List | |
| public List | |
| public String |
| arguments | back to summary |
|---|---|
| private final List<ClassBuilderInfo. Map of arguments for the constructor. Key is argument name, value is argument type. | |
| CONSTRUCTOR_TEMPL | back to summary |
|---|---|
| private static final String CONSTRUCTOR_TEMPL | |
| superArguments | back to summary |
|---|---|
| private final List<ClassBuilderInfo. Map of arguments for the super-constructor. Key is argument name, value is argument type. | |
| throwArguments | back to summary |
|---|---|
| private final List<String> throwArguments List of throws arguments. | |
| ClassConstructor | back to summary |
|---|---|
| public ClassConstructor() | |
| argumentsAsString | back to summary |
|---|---|
| public String argumentsAsString(Set<String> _allImports, String _prefix) | |
| generatedCode | back to summary |
|---|---|
| public List | |
| getArguments | back to summary |
|---|---|
| public List | |
| getSuperArguments | back to summary |
|---|---|
| public List | |
| getThrowArguments | back to summary |
|---|---|
| public List | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | annotations
List of annotations for this method. |
| private final List | arguments
Arguments for this method, key is argument name, value is argument type. |
| private final boolean | finalMethod
True if method should be final, false otherwise. |
| private static final String | |
| private final String | name
Name of this method. |
| private final String | returnType
Return value of the method. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public List | |
| public List | |
| public String | |
| public String | |
| public boolean |
| annotations | back to summary |
|---|---|
| private final List<String> annotations List of annotations for this method. | |
| arguments | back to summary |
|---|---|
| private final List<ClassBuilderInfo. Arguments for this method, key is argument name, value is argument type. | |
| finalMethod | back to summary |
|---|---|
| private final boolean finalMethod True if method should be final, false otherwise. | |
| METHOD_TEMPL | back to summary |
|---|---|
| private static final String METHOD_TEMPL | |
| name | back to summary |
|---|---|
| private final String name Name of this method. | |
| returnType | back to summary |
|---|---|
| private final String returnType Return value of the method. | |
| ClassMethod | back to summary |
|---|---|
| public ClassMethod(String _name, String _returnType, boolean _finalMethod) | |
| generateCode | back to summary |
|---|---|
| public List | |
| getAnnotations | back to summary |
|---|---|
| public List | |
| getArguments | back to summary |
|---|---|
| public List | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getReturnType | back to summary |
|---|---|
| public String getReturnType() | |
| isFinalMethod | back to summary |
|---|---|
| public boolean isFinalMethod() | |
ClassBuilderInfo is for a CLASS or an INTERFACE.
| Modifier and Type | Field and Description |
|---|---|
| public static final ClassBuilderInfo. | |
| public static final ClassBuilderInfo. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ClassBuilderInfo. | |
| public static ClassBuilderInfo. |
| CLASS | back to summary |
|---|---|
| public static final ClassBuilderInfo. | |
| INTERFACE | back to summary |
|---|---|
| public static final ClassBuilderInfo. | |
| ClassType | back to summary |
|---|---|
| private ClassType() | |
| valueOf | back to summary |
|---|---|
| public static ClassBuilderInfo. | |
| values | back to summary |
|---|---|
| public static ClassBuilderInfo. | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | annotations
List of annotations for this member. |
| private final boolean | finalArg
True to force this member to be final, false otherwise. |
| private final List | generics
List of classes/types or placeholders put into diamond operators to use as generics. |
| private static final String | |
| private final String | name
Name of member/field. |
| private static final String | |
| private final String | type
Type of member/field (e.g. String, int...). |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public List | |
| public List | |
| public String | |
| public List | |
| public String | |
| public String | |
| public boolean | |
| public String |
| annotations | back to summary |
|---|---|
| private final List<String> annotations List of annotations for this member. | |
| finalArg | back to summary |
|---|---|
| private final boolean finalArg True to force this member to be final, false otherwise. | |
| generics | back to summary |
|---|---|
| private final List<String> generics List of classes/types or placeholders put into diamond operators to use as generics. | |
| GETTER_TEMPL | back to summary |
|---|---|
| private static final String GETTER_TEMPL | |
| name | back to summary |
|---|---|
| private final String name Name of member/field. | |
| SETTER_TEMPL | back to summary |
|---|---|
| private static final String SETTER_TEMPL | |
| type | back to summary |
|---|---|
| private final String type Type of member/field (e.g. String, int...). | |
| MemberOrArgument | back to summary |
|---|---|
| public MemberOrArgument(String _name, String _type, boolean _finalMember) | |
| MemberOrArgument | back to summary |
|---|---|
| public MemberOrArgument(String _name, String _type) | |
| asOneLineString | back to summary |
|---|---|
| public String asOneLineString(Set<String> _allImports, String _prefix, boolean _includeAnnotations) | |
| generateCode | back to summary |
|---|---|
| public List | |
| getAnnotations | back to summary |
|---|---|
| public List | |
| getFullType | back to summary |
|---|---|
| public String getFullType(Set<String> _allImports) | |
| getGenerics | back to summary |
|---|---|
| public List | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getType | back to summary |
|---|---|
| public String getType() | |
| isFinalArg | back to summary |
|---|---|
| public boolean isFinalArg() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |