public abstract class PMessageDescriptor<T extends PMessage<T,F>,F extends PField> extends PDeclaredDescriptor<T>
Constructor and Description |
---|
PMessageDescriptor(String programName,
String name,
PMessageBuilderFactory<T,F> factory,
boolean simple,
boolean compactible) |
Modifier and Type | Method and Description |
---|---|
PMessageBuilder<T,F> |
builder()
Get the builder for the given declared type.
|
boolean |
equals(Object o) |
protected PMessageBuilderFactory<T,F> |
getFactoryInternal()
Get the actual builder factory instance.
|
abstract F |
getField(int key) |
abstract F |
getField(String name) |
abstract F[] |
getFields() |
PType |
getType() |
abstract PMessageVariant |
getVariant() |
int |
hashCode() |
boolean |
isCompactible() |
boolean |
isSimple() |
getName, getProgramName, getQualifiedName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getQualifiedName
public PMessageDescriptor(String programName, String name, PMessageBuilderFactory<T,F> factory, 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 abstract PMessageVariant getVariant()
public boolean isCompactible()
public boolean isSimple()
public PType getType()
public PMessageBuilder<T,F> builder()
PDeclaredDescriptor
protected PMessageBuilderFactory<T,F> getFactoryInternal()
Copyright © 2015–2016 morimekta.net. All rights reserved.