| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final boolean | |
| private final DocumentBuilderFactory | |
| private final String | |
| private final Set | |
| private final String | |
| private final Logger | |
| private final String | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Map | Returns: List of Filenames and contents for the filestrue to disable dtd-validation, false otherwise _ignoreDtd)Analyze the DBus interface given in constructor by parsing the introspection data. |
| private String | Returns: FQCN of the created struct classDbus Type definition string _dbusTypeStr, String name of the struct to create _structName, ClassBuilderInfo package name for the struct class _packageName, List<ClassBuilderInfo> list of _structClasses)ClassCastException, other struct classes which may be created during struct creation will be added hereCreates a class for a DBus Struct-Object. |
| pack-priv static List | Returns: List of Element, maybe emptyNodeList to convert _nodeList)Converts a NodeList to List<Element>. |
| private String | Returns: FQCN of the newly created tuple based classMap with return arguments (key) and their types (value) _outputArgs,name the tuple class should get _className, ClassBuilderInfo parent class where the tuple was required in _parentClzBldr, List<ClassBuilderInfo> list where the new created tuple class will be added to _additionalClasses, List<String> Dbus argument names and data types _dbusOutputArgTypes)Creates a Tuple extending class to encapsulate a multi-value return (which is not supported by Java natively). |
| private Map | Returns: Map of files and their contentsinterface element _ife)Extract all methods/signals etc. from the given interface element. |
| private List | Returns: List ofClassBuilderInfo which have been created (maybe empty, never null)method XML element _methodElement, ClassBuilderInfo ClassBuilderInfo objectExtract <method> elements properties. |
| private List | Returns: List ofClassBuilderInfo which have been created (maybe empty, never null)method XML element _propertyElement, ClassBuilderInfo ClassBuilderInfo objectExtract <property> elements properties. |
| private List | Returns: List ofClassBuilderInfo which have been created (maybe empty, never null)signal xml element _signalElement, ClassBuilderInfo ClassBuilderInfo objectExtract <signal> element properties. |
| public static void | |
| private static void | |
| private static void | |
| pack-priv static void | writeToFile(String
directory to put output files to _outputDir, Map<File, String> map of files and contents which should be created _filesToGenerate)Creates all files in the given map with the given content in the given directory. |
| argumentPrefix | back to summary |
|---|---|
| private final String argumentPrefix | |
| busName | back to summary |
|---|---|
| private final String busName | |
| disableFilter | back to summary |
|---|---|
| private final boolean disableFilter | |
| docFac | back to summary |
|---|---|
| private final DocumentBuilderFactory docFac | |
| forcePackageName | back to summary |
|---|---|
| private final String forcePackageName | |
| generatedStructClassNames | back to summary |
|---|---|
| private final Set<String> generatedStructClassNames | |
| introspectionData | back to summary |
|---|---|
| private final String introspectionData | |
| logger | back to summary |
|---|---|
| private final Logger logger | |
| nodeName | back to summary |
|---|---|
| private final String nodeName | |
| propertyMethods | back to summary |
|---|---|
| private final boolean propertyMethods | |
| InterfaceCodeGenerator | back to summary |
|---|---|
| public InterfaceCodeGenerator(boolean _disableFilter, String _introspectionData, String _objectPath, String _busName, String _packageName, boolean _propertyMethods, String _argumentPrefix) | |
| analyze | back to summary |
|---|---|
| public Map Analyze the DBus interface given in constructor by parsing the introspection data. | |
| buildStructClass | back to summary |
|---|---|
| private String buildStructClass(String _dbusTypeStr, String _structName, ClassBuilderInfo _packageName, List<ClassBuilderInfo> _structClasses) throws DBusException Creates a class for a DBus Struct-Object.
| |
| convertToElementList | back to summary |
|---|---|
| pack-priv static List Converts a NodeList to List<Element>. Will skip all NodeList entries not compatible with Element type. | |
| createTuple | back to summary |
|---|---|
| private String createTuple(List<ClassBuilderInfo. Creates a Tuple extending class to encapsulate a multi-value return (which is not supported by Java natively).
| |
| extractAll | back to summary |
|---|---|
| private Map Extract all methods/signals etc. from the given interface element.
| |
| extractMethods | back to summary |
|---|---|
| private List Extract <method> elements properties.
| |
| extractProperties | back to summary |
|---|---|
| private List Extract <property> elements properties.
| |
| extractSignals | back to summary |
|---|---|
| private List Extract <signal> element properties.
| |
| main | back to summary |
|---|---|
| public static void main(String[] _args) | |
| printHelp | back to summary |
|---|---|
| private static void printHelp() | |
| version | back to summary |
|---|---|
| private static void version() | |
| writeToFile | back to summary |
|---|---|
| pack-priv static void writeToFile(String _outputDir, Map<File, String> _filesToGenerate) Creates all files in the given map with the given content in the given directory. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final InterfaceCodeGenerator. | |
| public static final InterfaceCodeGenerator. | |
| public static final InterfaceCodeGenerator. | |
| public static final InterfaceCodeGenerator. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Map | |
| public static InterfaceCodeGenerator. | |
| public static InterfaceCodeGenerator. |
| CLASSNAME | back to summary |
|---|---|
| public static final InterfaceCodeGenerator. | |
| DBUS_INTERFACE_NAME | back to summary |
|---|---|
| public static final InterfaceCodeGenerator. | |
| ORIG_PKGNAME | back to summary |
|---|---|
| public static final InterfaceCodeGenerator. | |
| PACKAGENAME | back to summary |
|---|---|
| public static final InterfaceCodeGenerator. | |
| DbusInterfaceToFqcn | back to summary |
|---|---|
| private DbusInterfaceToFqcn() | |
| toFqcn | back to summary |
|---|---|
| public static Map | |
| valueOf | back to summary |
|---|---|
| public static InterfaceCodeGenerator. | |
| values | back to summary |
|---|---|
| public static InterfaceCodeGenerator. | |