|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface IdentifierNode.Segment
Component in a compound identifier. It is described by its name and how the name is quoted.
For example, the identifier
[Store].USA.[New Mexico].&[45] has four segments:
IdentifierNode.Quoting.QUOTEDIdentifierNode.Quoting.UNQUOTEDIdentifierNode.Quoting.QUOTEDIdentifierNode.Quoting.KEYQUOTED and UNQUOTED segments are represented using a
NameSegment;
KEY segments are represented using a
KeySegment.
To parse an identifier into a list of segments, use the method
IdentifierNode.parseIdentifier(String).
| Method Summary | |
|---|---|
java.util.List<IdentifierNode.NameSegment> |
getKeyParts()
Returns the key components, if this Segment is a key. |
java.lang.String |
getName()
Returns the name of this Segment. |
IdentifierNode.Quoting |
getQuoting()
Returns how this Segment is quoted. |
ParseRegion |
getRegion()
Returns the region of the source code which this Segment was created from, if it was created by parsing. |
java.lang.String |
toString()
Returns a string representation of this Segment. |
void |
toString(java.lang.StringBuilder buf)
Appends a string representation of this Segment to a StringBuffer. |
| Method Detail |
|---|
java.lang.String toString()
For example, "[Foo]", "&[123]", "Abc".
toString in class java.lang.Objectvoid toString(java.lang.StringBuilder buf)
buf - StringBufferParseRegion getRegion()
IdentifierNode.Quoting getQuoting()
java.lang.String getName()
null if this Segment represents a key.
java.util.List<IdentifierNode.NameSegment> getKeyParts()
getQuoting() returns
IdentifierNode.Quoting.KEY.)
Returns null otherwise.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||