Class ClassBuilderInfo
java.lang.Object
org.freedesktop.dbus.utils.generator.ClassBuilderInfo
Helper to create Java class/interface files with proper formatting.
- Since:
- v3.0.1 - 2018-12-22
- Author:
- hypfvieh
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classContains information about annotation to place on classes, members or methods.static classPojo which represents a class constructor.static classPojo which represents a class method.static enumEnum to define either theClassBuilderInfois for a CLASS or an INTERFACE.static classPojo which represents a class member/field or argument. -
Constructor Summary
ConstructorsConstructorDescriptionCreate new instance without argument prefix.ClassBuilderInfo(String _argumentPrefix) Create new instance. -
Method Summary
Modifier and TypeMethodDescriptionCreate the Java source for the class information provided.Create the filename with path this java class should use.getFqcn()Creates the fully qualified classname based on the provided classname and package.voidsetClassName(String _className) voidsetClassType(ClassBuilderInfo.ClassType _classType) voidsetDbusPackageName(String _dbusPackageName) voidsetExtendClass(String _extendClass) voidsetPackageName(String _packageName) toString()
-
Constructor Details
-
ClassBuilderInfo
public ClassBuilderInfo()Create new instance without argument prefix. -
ClassBuilderInfo
Create new instance.- Parameters:
_argumentPrefix- prepend given prefix to all method/constructor arguments
-
-
Method Details
-
getImports
-
getPackageName
-
setPackageName
-
getDbusPackageName
-
setDbusPackageName
-
getClassName
-
setClassName
-
getClassType
-
setClassType
-
getAnnotations
-
getImplementedInterfaces
-
getExtendClass
-
setExtendClass
-
getMethods
-
getMembers
-
getInnerClasses
-
getConstructors
-
getGenerics
-
createClassFileContent
Create the Java source for the class information provided.- Returns:
- String
-
getFileName
Create the filename with path this java class should use.- Returns:
- String, null if class name was null
-
getFqcn
Creates the fully qualified classname based on the provided classname and package.- Returns:
- String
-
toString
-