public abstract class ProtoTypeMetadata extends Object implements HasProtoSchema
| Modifier and Type | Field and Description |
|---|---|
protected XClass |
javaClass |
protected String |
name |
protected ProtoMessageTypeMetadata |
outerType |
| Modifier | Constructor and Description |
|---|---|
protected |
ProtoTypeMetadata(String name,
XClass javaClass) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
appendDocumentation(IndentWriter iw,
String documentation) |
void |
generateProto(IndentWriter iw) |
String |
getDocumentation() |
abstract ProtoEnumValueMetadata |
getEnumMemberByName(String name) |
String |
getFileName()
The schema file where this type comes from.
|
String |
getFullName() |
XClass |
getJavaClass() |
String |
getJavaClassName() |
String |
getName() |
ProtoMessageTypeMetadata |
getOuterType() |
abstract boolean |
isEnum() |
boolean |
isImported()
Indicates if this type comes from the currently processed/generated schema of from an external schema.
|
void |
scanMemberAnnotations() |
protected void |
setOuterType(ProtoMessageTypeMetadata outerType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoProtoSchemaprotected final String name
protected final XClass javaClass
protected ProtoMessageTypeMetadata outerType
public String getName()
public String getFullName()
public String getDocumentation()
public XClass getJavaClass()
public String getJavaClassName()
public boolean isImported()
public String getFileName()
public abstract boolean isEnum()
public abstract ProtoEnumValueMetadata getEnumMemberByName(String name)
public final ProtoMessageTypeMetadata getOuterType()
protected final void setOuterType(ProtoMessageTypeMetadata outerType)
public void generateProto(IndentWriter iw)
generateProto in interface HasProtoSchemapublic void scanMemberAnnotations()
protected static void appendDocumentation(IndentWriter iw, String documentation)
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.