| 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 |
|---|---|
static JavaAttributeInfo |
JavaAttributeInfo.getAttributeInfoForTheData(org.onosproject.yang.compiler.datamodel.javadatamodel.JavaQualifiedTypeInfo importInfo,
String attributeName,
org.onosproject.yang.compiler.datamodel.YangType<?> attributeType,
boolean isQualifiedAccess,
boolean isListAttribute)
Returns java attribute info.
|
JavaAttributeInfo |
TempJavaServiceFragmentFiles.getChildNodeAsAttributeInParentService(org.onosproject.yang.compiler.datamodel.YangNode childNode,
org.onosproject.yang.compiler.datamodel.YangNode parentNode,
String rpcName)
Creates an attribute info object corresponding to a data model node and
return it.
|
static JavaAttributeInfo |
TempJavaFragmentFiles.getCurNodeAsAttributeInTarget(org.onosproject.yang.compiler.datamodel.YangNode curNode,
org.onosproject.yang.compiler.datamodel.YangNode targetNode,
boolean listNode,
TempJavaFragmentFiles tempFiles)
Creates an attribute info object corresponding to a data model node
and return it.
|
JavaAttributeInfo |
TempJavaTypeFragmentFiles.getIntAttribute()
Returns attribute for int.
|
JavaAttributeInfo |
TempJavaTypeFragmentFiles.getLongAttribute()
Returns attribute for long.
|
JavaAttributeInfo |
TempJavaTypeFragmentFiles.getShortAttribute()
Returns attribute for short.
|
JavaAttributeInfo |
TempJavaTypeFragmentFiles.getUInt8Attribute()
Returns attribute for uInt8.
|
JavaAttributeInfo |
TempJavaTypeFragmentFiles.getUIntAttribute()
Returns attribute for uInt.
|
JavaAttributeInfo |
TempJavaTypeFragmentFiles.getULongAttribute()
Returns attribute for uLong.
|
| Modifier and Type | Method and Description |
|---|---|
static List<JavaAttributeInfo> |
TempJavaFragmentFiles.getListOfAttributesForKey(org.onosproject.yang.compiler.datamodel.YangNode curNode)
Returns list of java attribute for keys of list node.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
TempJavaFragmentFiles.addGetterImpl(JavaAttributeInfo attr)
Adds getter method's impl for class.
|
void |
TempJavaServiceFragmentFiles.addJavaSnippetInfoToApplicableTempFiles(JavaAttributeInfo inAttr,
JavaAttributeInfo outAttr,
String rpcName)
Adds the JAVA rpc snippet information.
|
protected String |
TempJavaFragmentFiles.parseAttribute(JavaAttributeInfo attr)
Parses attribute to get the attribute string.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
MethodsGenerator.getAddToListMethodImpl(JavaAttributeInfo attr,
String name)
Returns add to list method impl.
|
static String |
JavaFileGeneratorUtils.getAddToListMethodInterface(JavaAttributeInfo attr,
String className)
Returns add to list method interface.
|
static String |
MethodsGenerator.getConstructor(JavaAttributeInfo attr,
int genType)
Returns the constructor strings for class file.
|
static String |
MethodsGenerator.getEqualsMethod(JavaAttributeInfo attr)
Returns equals method for class.
|
static String |
MethodsGenerator.getFromStringMethod(JavaAttributeInfo attr,
JavaAttributeInfo fromAttr)
Return from string method's body string.
|
static String |
MethodsGenerator.getGetterForClass(JavaAttributeInfo attr,
int generatedJavaFiles)
Returns the getter method strings for class file.
|
static String |
MethodsGenerator.getGetterString(JavaAttributeInfo attr,
int genType)
Returns getter string.
|
static String |
MethodsGenerator.getHashCodeMethod(JavaAttributeInfo attr)
Returns hash code method for class.
|
static String |
MethodsGenerator.getOfMethodStringAndJavaDoc(JavaAttributeInfo attr,
String className)
Returns of method's string and java doc for special type.
|
static String |
MethodsGenerator.getSetterForClass(JavaAttributeInfo attr,
int generatedJavaFiles)
Returns the setter method strings for class file.
|
static String |
MethodsGenerator.getSetterString(JavaAttributeInfo attr,
String className,
int genType)
Returns setter string.
|
static String |
MethodsGenerator.getToStringMethod(JavaAttributeInfo attr)
Returns to string method for class.
|
static String |
MethodsGenerator.getTypeConstructorStringAndJavaDoc(JavaAttributeInfo attr1,
JavaAttributeInfo attr2,
String genType,
ValidatorTypeForUnionTypes type,
boolean addFirst,
int count)
Returns string and java doc for constructor of type class.
|
static String |
MethodsGenerator.getTypeConstructorStringAndJavaDoc(JavaAttributeInfo attr,
String className,
int genType,
int count)
Returns string and java doc for constructor of type class.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
JavaFileGeneratorUtils.getCompareToForKeyClass(List<JavaAttributeInfo> attrs,
String className)
Returns compare to method for key class.
|
Copyright © 2018. All rights reserved.