public class JrpcgenXdrDefinition extends JrpcgenDocumentable implements JrpcgenItem
JrpcgenXdrDefinition.Type of this
class.
XDR definitions are documentable and therefore extend the class
JrpcgenDocumentable. As they provide an identifier, they implement
the interface JrpcgenItem and therefore can be used in item tables
based on JrpcgenItemTable.
Although this class is not abstract, it is not intended to be used directly. It will be used as a base class for concrete realisations of constant definitions and complex type definitions, enabling the identification of their nature at this generalized level.
| Modifier and Type | Class and Description |
|---|---|
static class |
JrpcgenXdrDefinition.Table
Type definition for a table of XDR definitions.
|
static class |
JrpcgenXdrDefinition.Type
Specification of the possible XDR definition types.
|
documentation| Constructor and Description |
|---|
JrpcgenXdrDefinition(String identifier,
JrpcgenXdrDefinition.Type type)
Creates a new XDR definition instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getIdentifier()
Returns the identifier of this XDR definition.
|
JrpcgenXdrDefinition.Type |
getXdrType()
Returns the XDR aka definition type of this
XDR definition.
|
boolean |
isConst()
Returns whether this XDR definition belongs to a constant
definition.
|
boolean |
isEnum()
Returns whether this XDR definition belongs to an
enumeration definition.
|
boolean |
isStruct()
Returns whether this XDR definition belongs to a
stucture definition.
|
boolean |
isTypedef()
Returns whether this XDR definition belongs to a
type definition.
|
boolean |
isUnion()
Returns whether this XDR definition belongs to a
union definition.
|
appendDeprecatedOrNothing, appendDeprecatedOrNothing, documentationIsEmpty, documentationIsProvided, emptyDocumentation, getDocumentation, getIdentedDocu, getIdentedDocu, isDeprecated, writeDocumentation, writeDocumentationpublic JrpcgenXdrDefinition(String identifier, JrpcgenXdrDefinition.Type type)
identifier - The identifier of the new XDR definition.type - The definition type of the new XDR definition.public final String getIdentifier()
getIdentifier in interface JrpcgenItempublic final JrpcgenXdrDefinition.Type getXdrType()
JrpcgenXdrDefinition.Typepublic final boolean isConst()
true in case this XDR definition belongs to
a constant definition, false otherwise.public final boolean isEnum()
true in case this XDR definition belongs
to an enumeration definition, false otherwise.public final boolean isStruct()
true in case this XDR definition belongs
to a structure definition, false otherwise.public final boolean isUnion()
true in case this XDR definition belongs
to a union definition, false otherwise.public final boolean isTypedef()
true in case this XDR definition belongs
to a type definition, false otherwise.Copyright © 2025. All rights reserved.