Class ProtoMessageTypeMetadata
- java.lang.Object
-
- org.infinispan.protostream.annotations.impl.ProtoTypeMetadata
-
- org.infinispan.protostream.annotations.impl.ProtoMessageTypeMetadata
-
- All Implemented Interfaces:
HasProtoSchema
public final class ProtoMessageTypeMetadata extends ProtoTypeMetadata
AProtoTypeMetadata
for a message type created based on annotations during the current execution ofProtoSchemaBuilder
.- Since:
- 3.0
- Author:
- [email protected]
-
-
Field Summary
-
Fields inherited from class org.infinispan.protostream.annotations.impl.ProtoTypeMetadata
javaClass, name, outerType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addInnerType(ProtoTypeMetadata typeMetadata)
void
generateProto(IndentWriter iw)
ProtoEnumValueMetadata
getEnumMemberByName(String name)
Map<Integer,ProtoFieldMetadata>
getFields()
XField
getUnknownFieldSetField()
XMethod
getUnknownFieldSetGetter()
XMethod
getUnknownFieldSetSetter()
boolean
isEnum()
void
scanMemberAnnotations()
-
Methods inherited from class org.infinispan.protostream.annotations.impl.ProtoTypeMetadata
appendDocumentation, getDocumentation, getFileName, getFullName, getJavaClass, getJavaClassName, getName, getOuterType, isImported, setOuterType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.protostream.annotations.impl.HasProtoSchema
toProtoSchema
-
-
-
-
Method Detail
-
getUnknownFieldSetField
public XField getUnknownFieldSetField()
-
getUnknownFieldSetGetter
public XMethod getUnknownFieldSetGetter()
-
getUnknownFieldSetSetter
public XMethod getUnknownFieldSetSetter()
-
getFields
public Map<Integer,ProtoFieldMetadata> getFields()
-
addInnerType
protected void addInnerType(ProtoTypeMetadata typeMetadata)
-
generateProto
public void generateProto(IndentWriter iw)
- Specified by:
generateProto
in interfaceHasProtoSchema
- Overrides:
generateProto
in classProtoTypeMetadata
-
isEnum
public boolean isEnum()
- Specified by:
isEnum
in classProtoTypeMetadata
-
getEnumMemberByName
public ProtoEnumValueMetadata getEnumMemberByName(String name)
- Specified by:
getEnumMemberByName
in classProtoTypeMetadata
-
scanMemberAnnotations
public void scanMemberAnnotations()
- Overrides:
scanMemberAnnotations
in classProtoTypeMetadata
-
-