Class Proto
java.lang.Object
io.protostuff.parser.AnnotationContainer
io.protostuff.parser.Proto
- All Implemented Interfaces:
HasAnnotations, HasOptions, HasProto
Contains the metadata of parsed protos. Basically repesents the .proto file.
- Author:
- David Yu
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionProto()Proto(Proto.Loader loader) Proto(File file, Proto.Loader loader) Proto(File file, Proto.Loader loader, Proto importer) Proto(URL url, Proto.Loader loader, Proto importer) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Annotation annotation) Adds the annoation.voidaddExtension(Extension extension) getEnumGroup(String name) getError()<V> VgetExtraOption(String key) getFile()getImportedProto(File file) getImportedProto(String url) getImportedProto(URL url) getMessage(String name) getO()Returns the java package name that was configured in the proto.Returns the package name that was configured in the proto.getProto()getService(String name) getStandardOption(String name) voidputExtraOption(String key, Object value) voidputStandardOption(String key, Object value) toString()Methods inherited from class AnnotationContainer
addAnnotations, addDoc, err, getA, getAnnotation, getAnnotationMap, getAnnotations, getDocs, hasAnnotation, isEmptyA
-
Constructor Details
-
Proto
public Proto() -
Proto
-
Proto
-
Proto
-
Proto
-
Proto
-
-
Method Details
-
getProto
-
getError
-
getFile
-
getSourcePath
-
getMutablePackageName
-
getPackageName
-
getOriginalPackageName
Returns the package name that was configured in the proto. Note thatgetPackageName()will have the same value as this, if the compiler options did not have entries that override it. -
getMutableJavaPackageName
-
getJavaPackageName
-
getOriginalJavaPackageName
Returns the java package name that was configured in the proto. Note thatgetJavaPackageName()will have the same value as this, if the compiler options did not have entries that override it. -
getStandardOptions
-
getStandardOption
-
getExtraOptions
-
getO
-
getOptions
- Specified by:
getOptionsin interfaceHasOptions
-
putStandardOption
- Specified by:
putStandardOptionin interfaceHasOptions
-
putExtraOption
- Specified by:
putExtraOptionin interfaceHasOptions
-
getExtraOption
-
getMessageMap
-
getMessages
-
getMessage
-
getEnumGroupMap
-
getEnumGroups
-
getEnumGroup
-
getServiceMap
-
getServices
-
getService
-
addExtension
-
getExtensions
-
getImportedProtos
-
getImportedProto
-
getImportedProto
-
getImportedProto
-
add
Description copied from interface:HasAnnotationsAdds the annoation.- Specified by:
addin interfaceHasAnnotations- Overrides:
addin classAnnotationContainer
-
toString
-