Package io.protostuff.parser
Class Service
- java.lang.Object
-
- io.protostuff.parser.AnnotationContainer
-
- io.protostuff.parser.Service
-
- All Implemented Interfaces:
HasAnnotations,HasName,HasOptions,HasProto
public class Service extends AnnotationContainer implements HasName, HasOptions
Represents a service defined in the proto (for generating rpc services).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classService.RpcMethod
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.LinkedHashMap<java.lang.String,java.lang.Object>extraOptions(package private) java.lang.Stringname(package private) MessageparentMessage(package private) Protoproto(package private) java.util.LinkedHashMap<java.lang.String,Service.RpcMethod>rpcMethods(package private) java.util.LinkedHashMap<java.lang.String,java.lang.Object>standardOptions-
Fields inherited from class io.protostuff.parser.AnnotationContainer
annotations, docs
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Service.RpcMethodaddRpcMethod(java.lang.String name, java.lang.String argName, java.lang.String argPackage, java.lang.String retName, java.lang.String retPackage)java.lang.ObjectgetExtraOption(java.lang.String name)java.util.LinkedHashMap<java.lang.String,java.lang.Object>getExtraOptions()java.lang.StringgetFullName()java.lang.StringgetJavaFullName()java.lang.StringgetName()java.util.LinkedHashMap<java.lang.String,java.lang.Object>getO()java.util.LinkedHashMap<java.lang.String,java.lang.Object>getOptions()MessagegetParentMessage()ProtogetProto()java.lang.StringgetRelativeName()Service.RpcMethodgetRpcMethod(java.lang.String name)java.util.LinkedHashMap<java.lang.String,Service.RpcMethod>getRpcMethodMap()java.util.Collection<Service.RpcMethod>getRpcMethods()java.lang.ObjectgetStandardOption(java.lang.String name)java.util.LinkedHashMap<java.lang.String,java.lang.Object>getStandardOptions()booleanisNested()voidputExtraOption(java.lang.String key, java.lang.Object value)voidputStandardOption(java.lang.String key, java.lang.Object value)(package private) voidresolveReferences()-
Methods inherited from class io.protostuff.parser.AnnotationContainer
add, addAnnotations, addDoc, err, getA, getAnnotation, getAnnotationMap, getAnnotations, getDocs, hasAnnotation, isEmptyA
-
-
-
-
Field Detail
-
name
final java.lang.String name
-
parentMessage
final Message parentMessage
-
proto
final Proto proto
-
rpcMethods
final java.util.LinkedHashMap<java.lang.String,Service.RpcMethod> rpcMethods
-
standardOptions
final java.util.LinkedHashMap<java.lang.String,java.lang.Object> standardOptions
-
extraOptions
final java.util.LinkedHashMap<java.lang.String,java.lang.Object> extraOptions
-
-
Method Detail
-
getFullName
public java.lang.String getFullName()
-
getJavaFullName
public java.lang.String getJavaFullName()
-
getRelativeName
public java.lang.String getRelativeName()
-
getParentMessage
public Message getParentMessage()
-
isNested
public boolean isNested()
-
getRpcMethods
public java.util.Collection<Service.RpcMethod> getRpcMethods()
-
getRpcMethodMap
public java.util.LinkedHashMap<java.lang.String,Service.RpcMethod> getRpcMethodMap()
-
getRpcMethod
public Service.RpcMethod getRpcMethod(java.lang.String name)
-
addRpcMethod
Service.RpcMethod addRpcMethod(java.lang.String name, java.lang.String argName, java.lang.String argPackage, java.lang.String retName, java.lang.String retPackage)
-
getStandardOptions
public java.util.LinkedHashMap<java.lang.String,java.lang.Object> getStandardOptions()
-
putStandardOption
public void putStandardOption(java.lang.String key, java.lang.Object value)- Specified by:
putStandardOptionin interfaceHasOptions
-
getStandardOption
public java.lang.Object getStandardOption(java.lang.String name)
-
getExtraOptions
public java.util.LinkedHashMap<java.lang.String,java.lang.Object> getExtraOptions()
-
putExtraOption
public void putExtraOption(java.lang.String key, java.lang.Object value)- Specified by:
putExtraOptionin interfaceHasOptions
-
getExtraOption
public java.lang.Object getExtraOption(java.lang.String name)
-
getO
public java.util.LinkedHashMap<java.lang.String,java.lang.Object> getO()
-
getOptions
public java.util.LinkedHashMap<java.lang.String,java.lang.Object> getOptions()
- Specified by:
getOptionsin interfaceHasOptions
-
resolveReferences
void resolveReferences()
-
-