| Modifier | Constructor and Description |
|---|---|
protected |
ProtoElement(ProtoElement parent,
java.lang.String name,
java.lang.String path)
Creates the element, given its parent and (simple) name.
|
| Modifier and Type | Method and Description |
|---|---|
ProtoFile |
getFile()
Returns the proto file in which this element lives.
|
java.lang.String |
getFullName()
Returns the full name of this element, including package and outer messages
for nested elements.
|
Location |
getLocation()
Deliver the location of this protocol element.
|
Model |
getModel()
Returns the model.
|
abstract java.util.Map<com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object> |
getOptionFields()
Return this element's options from the proto.
|
ProtoElement |
getParent()
Returns the parent, or null if this a root (a proto file).
|
java.lang.String |
getSimpleName()
Returns the simple name.
|
com.google.protobuf.Syntax |
getSyntax()
Gets the syntax in which the element was defined.
|
boolean |
isDeprecated()
Returns true if this object represents something that is configured as deprecated.
|
boolean |
isReachable()
Return true if the element is reachable with the current scoper.
|
addAttribute, getAttribute, getAttributeOrDefault, hasAttribute, putAttribute, removeAttributeprotected ProtoElement(@Nullable
ProtoElement parent,
java.lang.String name,
java.lang.String path)
@Nullable public ProtoElement getParent()
public java.lang.String getSimpleName()
getSimpleName in class Elementpublic java.lang.String getFullName()
getFullName in class Elementpublic ProtoFile getFile()
public abstract java.util.Map<com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object> getOptionFields()
public Location getLocation()
getLocation in class Elementpublic com.google.protobuf.Syntax getSyntax()
public boolean isReachable()
public boolean isDeprecated()