public abstract class QualifiedName
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<java.lang.String> |
components()
Returns the components of this name as an iterable of strings, starting at the root.
|
abstract java.lang.String |
getComponent()
Returns outer-most term of this qualified name, or the entire name for simple names.
|
abstract QualifiedName |
getOwner()
Returns the qualified name of the owner, or null for simple names.
|
QualifiedName |
getprop(java.lang.String propertyName)
Returns a new qualified name object with
this name as the owner and the given string as
the property name. |
abstract boolean |
isSimple()
Returns true if this is a simple name.
|
java.lang.String |
join()
Returns the qualified name as a string.
|
abstract boolean |
matches(Node n)
Checks whether the given node matches this name.
|
static QualifiedName |
of(java.lang.String string) |
public static QualifiedName of(java.lang.String string)
@Nullable public abstract QualifiedName getOwner()
public abstract java.lang.String getComponent()
public abstract boolean isSimple()
public abstract boolean matches(Node n)
public java.lang.Iterable<java.lang.String> components()
public java.lang.String join()
public QualifiedName getprop(java.lang.String propertyName)
this
name as the owner and the given string as
the property name.Copyright © 2009-2019 Google. All Rights Reserved.