Class FileDescriptor
java.lang.Object
org.infinispan.protostream.descriptors.FileDescriptor
Representation of a .proto file, including its dependencies.
- Since:
- 2.0
- Author:
- gustavonalle, [email protected]
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static enum
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear resolving errors of unresolved files.Top level message types defined in this file.getName()
getTypes()
All types defined in this file (both message and enum).boolean
void
void
resolveDependencies
(ResolutionContext resolutionContext) Resolve type references across files and report semantic errors like duplicate type declarations, duplicate type ids or clashing enum value constants.void
setConfiguration
(Configuration configuration) This method is not part of the public API.toString()
-
Field Details
-
configuration
-
-
Method Details
-
getConfiguration
-
setConfiguration
This method is not part of the public API. May be removed in future versions. -
getDependants
-
isResolved
public boolean isResolved() -
markUnresolved
public void markUnresolved() -
clearErrors
public void clearErrors()Clear resolving errors of unresolved files. Parsing errors are not cleared. Transitions from ERROR status back to UNRESOLVED and propagates this recursively to all dependant FileDescriptors. All internal state acquired during type reference resolution is cleared for this file and dependants (recursively). -
getExportedNamespace
-
resolveDependencies
public void resolveDependencies(ResolutionContext resolutionContext) throws DescriptorParserException Resolve type references across files and report semantic errors like duplicate type declarations, duplicate type ids or clashing enum value constants. OnlyFileDescriptor.Status.UNRESOLVED
files are processed. Files with other states are ignored.- Throws:
DescriptorParserException
-
getSyntax
-
getName
-
getPackage
-
getOptions
-
getOption
-
getEnumTypes
-
getMessageTypes
Top level message types defined in this file. -
getExtensionsTypes
-
getTypes
All types defined in this file (both message and enum). -
toString
-