| Modifier and Type | Field and Description |
|---|---|
| private final String | _contextName
For nested definitions we also need to know the name this context has (not used for root): this is unqualified name (that is, only name for context, not path) |
| private Map | _declaredMessageTypes
Mapping from types declared within this scope (root types for root resolver; nested types for child resolvers) |
| private Map | _enumTypes
Enum types visible at this level and deeper (nested enums with scoped names), not including enums declared at outer levels. |
| private final TypeResolver | |
| private Map | _resolvedMessageTypes
Mapping from names of types within this scope (with possible prefix as necessary) into resolve types. |
| Access | Constructor and Description |
|---|---|
| protected | TypeResolver(TypeResolver p, String name, Map<String, MessageElement> declaredMsgs, Map<String, ProtobufEnum> enums)
|
| Modifier and Type | Method and Description |
|---|---|
| private ProtobufField | |
| private ProtobufField | |
| private ProtobufField | |
| private StringBuilder | |
| private StringBuilder | |
| protected ProtobufMessage | |
| private final String | |
| private static final String | |
| protected void | |
| protected void | |
| protected static TypeResolver | |
| protected static ProtobufEnum | |
| public static ProtobufMessage | resolve(Collection<TypeElement> nativeTypes, MessageElement rawType)
Main entry method for public API, for resolving specific root-level type and other types it depends on. |
| protected ProtobufMessage |
| _contextName | back to summary |
|---|---|
| private final String _contextName For nested definitions we also need to know the name this context has (not used for root): this is unqualified name (that is, only name for context, not path) | |
| _declaredMessageTypes | back to summary |
|---|---|
| private Map<String, MessageElement> _declaredMessageTypes Mapping from types declared within this scope (root types for root resolver; nested types for child resolvers) | |
| _enumTypes | back to summary |
|---|---|
| private Map<String, ProtobufEnum> _enumTypes Enum types visible at this level and deeper (nested enums with scoped names), not including enums declared at outer levels. | |
| _parent | back to summary |
|---|---|
| private final TypeResolver _parent | |
| _resolvedMessageTypes | back to summary |
|---|---|
| private Map<String, ProtobufMessage> _resolvedMessageTypes Mapping from names of types within this scope (with possible prefix as necessary) into resolve types. | |
| TypeResolver | back to summary |
|---|---|
| protected TypeResolver(TypeResolver p, String name, Map<String, MessageElement> declaredMsgs, Map<String, ProtobufEnum> enums) | |
| _findAndResolve | back to summary |
|---|---|
| private ProtobufField _findAndResolve(FieldElement nativeField, String typeStr) | |
| _findAnyResolved | back to summary |
|---|---|
| private ProtobufField _findAnyResolved(FieldElement nativeField, String typeStr) | |
| _findLocalResolved | back to summary |
|---|---|
| private ProtobufField _findLocalResolved(FieldElement nativeField, String typeStr) | |
| _knownEnums | back to summary |
|---|---|
| private StringBuilder _knownEnums(StringBuilder sb) | |
| _knownMsgs | back to summary |
|---|---|
| private StringBuilder _knownMsgs(StringBuilder sb) | |
| _resolve | back to summary |
|---|---|
| protected ProtobufMessage _resolve(MessageElement rawType) | |
| _scopedName | back to summary |
|---|---|
| private final String _scopedName(String localName) | |
| _scopedName | back to summary |
|---|---|
| private static final String _scopedName(String contextName, String localName) | |
| addEnumType | back to summary |
|---|---|
| protected void addEnumType(String name, ProtobufEnum enumType) | |
| addResolvedMessageType | back to summary |
|---|---|
| protected void addResolvedMessageType(String name, ProtobufMessage toResolve) | |
| construct | back to summary |
|---|---|
| protected static TypeResolver construct(TypeResolver parent, String localName, Collection<TypeElement> nativeTypes) | |
| constructEnum | back to summary |
|---|---|
| protected static ProtobufEnum constructEnum(EnumElement nativeEnum) | |
| resolve | back to summary |
|---|---|
| public static ProtobufMessage resolve(Collection<TypeElement> nativeTypes, MessageElement rawType) Main entry method for public API, for resolving specific root-level type and other types it depends on. | |
| resolve | back to summary |
|---|---|
| protected ProtobufMessage resolve(TypeResolver parent, MessageElement rawType) | |