| 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.
|
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 Location getLocation()
getLocation in class Elementpublic com.google.protobuf.Syntax getSyntax()
public boolean isReachable()
public boolean isDeprecated()