public abstract class PStructDescriptor<T extends PMessage<T>,F extends PField> extends PDeclaredDescriptor<T>
| Constructor and Description |
|---|
PStructDescriptor(String comment,
String packageName,
String name,
PMessageBuilderFactory<T> provider,
boolean simple,
boolean compactible) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
PMessageBuilderFactory<T> |
factory()
Get the builder for the given declared type.
|
abstract F |
getField(int key) |
abstract F |
getField(String name) |
abstract F[] |
getFields() |
PType |
getType() |
PMessageVariant |
getVariant() |
int |
hashCode() |
boolean |
isCompactible() |
boolean |
isSimple() |
getComment, getName, getPackageName, getQualifiedName, toStringpublic PStructDescriptor(String comment, String packageName, String name, PMessageBuilderFactory<T> provider, boolean simple, boolean compactible)
public abstract F[] getFields()
public abstract F getField(String name)
name - Name of field to get.public abstract F getField(int key)
key - The ID of the field to get.public boolean isCompactible()
public boolean isSimple()
public PMessageVariant getVariant()
public PType getType()
public PMessageBuilderFactory<T> factory()
PDeclaredDescriptorfactory in class PDeclaredDescriptor<T extends PMessage<T>>Copyright © 2016. All rights reserved.