Package org.acplt.oncrpc.apps.jrpcgen
Class JrpcgenEnum.Element
java.lang.Object
org.acplt.oncrpc.apps.jrpcgen.JrpcgenDocumentable
org.acplt.oncrpc.apps.jrpcgen.JrpcgenXdrDefinition
org.acplt.oncrpc.apps.jrpcgen.JrpcgenConst
org.acplt.oncrpc.apps.jrpcgen.JrpcgenEnum.Element
- All Implemented Interfaces:
JrpcgenItem
- Enclosing class:
JrpcgenEnum
-
Nested Class Summary
Nested classes/interfaces inherited from class org.acplt.oncrpc.apps.jrpcgen.JrpcgenConst
JrpcgenConst.TableNested classes/interfaces inherited from class org.acplt.oncrpc.apps.jrpcgen.JrpcgenXdrDefinition
JrpcgenXdrDefinition.Type -
Field Summary
Fields inherited from class org.acplt.oncrpc.apps.jrpcgen.JrpcgenDocumentable
documentation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAsCaseValue(String forEnclosure) Delivers a case value representation of the constant.getAsRValue(String forEnclosure) Delivers an r-value representation of the constant.voidwriteDeclaration(JrpcgenJavaFile javaFile) Methods inherited from class org.acplt.oncrpc.apps.jrpcgen.JrpcgenConst
detectIdentifier, dump, dump, getAsCaseValue, getAsRValue, getAsRValue, getContext, getEnclosure, getForEnclosure, getValue, getValueAsRValue, resolveValue, setEnclosure, setValue, toStringMethods inherited from class org.acplt.oncrpc.apps.jrpcgen.JrpcgenXdrDefinition
getIdentifier, getXdrType, isConst, isEnum, isStruct, isTypedef, isUnionMethods inherited from class org.acplt.oncrpc.apps.jrpcgen.JrpcgenDocumentable
appendDeprecatedOrNothing, appendDeprecatedOrNothing, documentationIsEmpty, documentationIsProvided, emptyDocumentation, getDocumentation, getIdentedDocu, getIdentedDocu, isDeprecated, writeDocumentation, writeDocumentation
-
Constructor Details
-
Element
-
-
Method Details
-
writeDeclaration
- Overrides:
writeDeclarationin classJrpcgenConst
-
getAsRValue
Description copied from class:JrpcgenConstDelivers an r-value representation of the constant.The passed enclosure name identifies the target enclosure (namespace), where the requested constant representation is intended to be used.
- Overrides:
getAsRValuein classJrpcgenConst- Parameters:
forEnclosure- The name of the target enclosure.- Returns:
- One of the following representations
will be returned:
- The value of the constant, if the constant is a global constant.
- The identifier of the constant, if the constant lives in the target enclosure.
- The joined version of the enclosure the constant lives in and the identifier of the constant, delimited by a dot.
-
getAsCaseValue
Description copied from class:JrpcgenConstDelivers a case value representation of the constant.The passed enclosure name identifies the target enclosure (namespace), where the requested constant representation is intended to be used.
- Overrides:
getAsCaseValuein classJrpcgenConst- Parameters:
forEnclosure- The name of the target enclosure.- Returns:
- One of the following representations
will be returned:
- The value of the constant, if the constant is a global constant.
- The identifier of the constant, if the constant lives in the target enclosure.
- The joined version of the enclosure the constant lives in and the identifier of the constant, delimited by a dot.
-