|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.olap4j.mdx.IdentifierNode.NameSegment
public static class IdentifierNode.NameSegment
Component in a compound identifier that describes the name of an object. Optionally, the name is quoted in brackets.
IdentifierNode.KeySegment| Constructor Summary | |
|---|---|
IdentifierNode.NameSegment(ParseRegion region,
java.lang.String name,
IdentifierNode.Quoting quoting)
Creates a segment with the given quoting and region. |
|
IdentifierNode.NameSegment(java.lang.String name)
Creates a quoted segment, "[name]". |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IdentifierNode.NameSegment(ParseRegion region,
java.lang.String name,
IdentifierNode.Quoting quoting)
region - Region of source codename - Namequoting - Quoting stylepublic IdentifierNode.NameSegment(java.lang.String name)
name - Name of segment| Method Detail |
|---|
public java.lang.String toString()
IdentifierNode.SegmentFor example, "[Foo]", "&[123]", "Abc".
toString in interface IdentifierNode.SegmenttoString in class java.lang.Objectpublic void toString(java.lang.StringBuilder buf)
IdentifierNode.Segment
toString in interface IdentifierNode.Segmentbuf - StringBufferpublic ParseRegion getRegion()
IdentifierNode.Segment
getRegion in interface IdentifierNode.Segmentpublic java.lang.String getName()
IdentifierNode.Segmentnull if this Segment represents a key.
getName in interface IdentifierNode.Segmentpublic IdentifierNode.Quoting getQuoting()
IdentifierNode.Segment
getQuoting in interface IdentifierNode.Segmentpublic java.util.List<IdentifierNode.NameSegment> getKeyParts()
IdentifierNode.SegmentIdentifierNode.Segment.getQuoting() returns
IdentifierNode.Quoting.KEY.)
Returns null otherwise.
getKeyParts in interface IdentifierNode.Segment
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||