Skip to content

Commit

Permalink
Make classes that implement IdentifierParser.Builder public, so that …
Browse files Browse the repository at this point in the history
…mondrian

can use them.


git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@353 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
julianhyde committed Aug 14, 2010
1 parent a385d41 commit a07775e
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/org/olap4j/impl/IdentifierParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ public interface Builder {
* @param name Name
* @param quoting Quoting style
* @param syntax Whether this is a name segment, first part of a key
* segment, or contiuation of a key segment
* segment, or continuation of a key segment
*/
void segmentComplete(
ParseRegion region,
Expand All @@ -412,12 +412,12 @@ enum Syntax {

/**
* Implementation of {@link org.olap4j.impl.IdentifierParser.Builder}
* that collects the segments that make up the name of a memberin a list.
* that collects the segments that make up the name of a member in a list.
* It cannot handle tuples or lists of members.
*/
private static class MemberBuilder implements Builder {
final List<IdentifierNode.NameSegment> subSegments;
final List<IdentifierNode.Segment> segmentList;
public static class MemberBuilder implements Builder {
protected final List<IdentifierNode.NameSegment> subSegments;
protected final List<IdentifierNode.Segment> segmentList;

public MemberBuilder() {
segmentList = new ArrayList<IdentifierNode.Segment>();
Expand Down Expand Up @@ -461,7 +461,12 @@ public void segmentComplete(
}
}

private static class MemberListBuilder extends MemberBuilder {
/**
* Implementation of {@link org.olap4j.impl.IdentifierParser.Builder}
* that collects segments into members,
* then collects members into lists.
*/
public static class MemberListBuilder extends MemberBuilder {
final List<List<IdentifierNode.Segment>> list =
new ArrayList<List<IdentifierNode.Segment>>();

Expand Down

0 comments on commit a07775e

Please sign in to comment.