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()
Transition form ERROR status to UNRESOLVED and propagate to all dependant FileDescriptors.
|
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() |
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) |
String |
toString() |
protected Configuration configuration
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
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 © 2017 JBoss, a division of Red Hat. All rights reserved.