Package org.olap4j.impl
Interface IdentifierParser.Builder
- All Known Implementing Classes:
IdentifierParser.MemberBuilder
,IdentifierParser.MemberListBuilder
- Enclosing class:
IdentifierParser
public static interface IdentifierParser.Builder
Callback that is called on completion of a structural element like a
member or tuple.
Implementations might create a list of members or just create a list of unresolved names.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when a member is complete.void
segmentComplete
(ParseRegion region, String name, Quoting quoting, IdentifierParser.Builder.Syntax syntax) Called when a segment is complete.void
Called when a tuple is complete.
-
Method Details
-
tupleComplete
void tupleComplete()Called when a tuple is complete. -
memberComplete
void memberComplete()Called when a member is complete. -
segmentComplete
void segmentComplete(ParseRegion region, String name, Quoting quoting, IdentifierParser.Builder.Syntax syntax) Called when a segment is complete.For example, the identifier
[Time].1997.[Jan].&31
contains four name segments: "[Time]", "1997", "[Jan]" and "31". The first and third are quoted; the last has an ampersand signifying that it is a key.- Parameters:
region
- Region of source codename
- Namequoting
- Quoting stylesyntax
- Whether this is a name segment, first part of a key segment, or continuation of a key segment
-