public final class FileDescriptor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FileDescriptor.Builder |
Modifier and Type | Field and Description |
---|---|
protected Configuration |
configuration |
Modifier and Type | Method and Description |
---|---|
void |
clearErrors()
Clear resolving errors of unresolved files.
|
Configuration |
getConfiguration() |
Map<String,FileDescriptor> |
getDependants() |
List<EnumDescriptor> |
getEnumTypes() |
Namespace |
getExportedNamespace() |
List<ExtendDescriptor> |
getExtensionsTypes() |
List<Descriptor> |
getMessageTypes()
Top level message types defined in this file.
|
String |
getName() |
Option |
getOption(String name) |
List<Option> |
getOptions() |
String |
getPackage() |
Map<String,GenericDescriptor> |
getTypes()
All types defined in this file (both message and enum).
|
boolean |
isResolved() |
void |
markUnresolved() |
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.
|
String |
toString() |
protected Configuration configuration
public Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
public Map<String,FileDescriptor> getDependants()
public boolean isResolved()
public void markUnresolved()
public void clearErrors()
public Namespace getExportedNamespace()
public void resolveDependencies(ResolutionContext resolutionContext) throws DescriptorParserException
FileDescriptor.Status.UNRESOLVED
files are processed. Files
with other states are ignored.DescriptorParserException
public String getName()
public String getPackage()
public List<EnumDescriptor> getEnumTypes()
public List<Descriptor> getMessageTypes()
public List<ExtendDescriptor> getExtensionsTypes()
public Map<String,GenericDescriptor> getTypes()
Copyright © 2019 JBoss, a division of Red Hat. All rights reserved.