| Package | Description |
|---|---|
| org.onosproject.yang.compiler.translator.tojava |
Generates java class definition from data model.
|
| org.onosproject.yang.compiler.translator.tojava.utils |
Translator's utils for YANG plugin.
|
| Modifier and Type | Method and Description |
|---|---|
JavaQualifiedTypeInfoTranslator |
JavaAttributeInfo.getImportInfo()
Returns the import info for the attribute type.
|
static JavaQualifiedTypeInfoTranslator |
JavaQualifiedTypeInfoTranslator.getQualifiedTypeInfoOfCurNode(org.onosproject.yang.compiler.datamodel.YangNode curNode,
String attributeName)
Returns the import info for an attribute, which needs to be used for code
generation for import or for qualified access.
|
| Modifier and Type | Method and Description |
|---|---|
SortedSet<JavaQualifiedTypeInfoTranslator> |
JavaImportData.getImportSet()
Returns the set containing the imported class/interface info.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
JavaImportData.addImportInfo(JavaQualifiedTypeInfoTranslator newImportInfo,
String className,
String classPkg)
Adds an imported class/interface info if it is not already part of the
collection.
|
int |
JavaQualifiedTypeInfoTranslator.compareTo(JavaQualifiedTypeInfoTranslator other)
Checks that there is no 2 objects with the same class name.
|
boolean |
JavaQualifiedTypeInfoTranslator.exactMatch(JavaQualifiedTypeInfoTranslator importInfo)
Checks if the import info matches.
|
void |
JavaImportData.removeFromImportData(JavaQualifiedTypeInfoTranslator importInfo)
Removes the import info from importSet.
|
void |
JavaAttributeInfo.setImportInfo(JavaQualifiedTypeInfoTranslator importInfo)
Sets the import info for the attribute type.
|
| Modifier and Type | Method and Description |
|---|---|
static JavaQualifiedTypeInfoTranslator |
JavaFileGeneratorUtils.getDerivedPkfInfo(org.onosproject.yang.compiler.datamodel.YangIdentity id)
Returns package info of derived identity.
|
| Modifier and Type | Method and Description |
|---|---|
List<JavaQualifiedTypeInfoTranslator> |
JavaExtendsListHolder.getExtendsList()
Returns extends list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JavaExtendsListHolder.addToExtendsList(JavaQualifiedTypeInfoTranslator info,
org.onosproject.yang.compiler.datamodel.YangNode node,
TempJavaFragmentFiles tempJavaFragmentFiles)
Adds to the extends list.
|
void |
JavaExtendsListHolder.removeFromExtendsList(JavaQualifiedTypeInfoTranslator info,
TempJavaFragmentFiles javaFragmentFiles)
Removes from extends list.
|
Copyright © 2018. All rights reserved.