Package mondrian.olap
Class Id
- java.lang.Object
-
- mondrian.olap.QueryPart
-
- mondrian.olap.ExpBase
-
- mondrian.olap.Id
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classId.KeySegmentIdentifier segment representing a key, possibly composite.static classId.NameSegmentComponent in a compound identifier that describes the name of an object.static classId.Quotingstatic classId.SegmentComponent in a compound identifier.
-
Constructor Summary
Constructors Constructor Description Id(List<Id.Segment> segments)Id(Id.Segment segment)Creates an identifier containing a single part.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(MdxVisitor visitor)Accepts a visitor to this Exp.Expaccept(Validator validator)Validates this expression.Idappend(Id.Segment segment)Returns a new Identifier consisting of this one with another segment appended.Idclone()intgetCategory()Returns theCategoryof the expression.Id.SegmentgetElement(int i)List<Id.Segment>getSegments()TypegetType()Returns the type of this expression.StringtoString()String[]toStringArray()voidunparse(PrintWriter pw)Writes a string representation of this parse tree node to the given writer.-
Methods inherited from class mondrian.olap.ExpBase
accept, cloneArray, getTypes, unparseList
-
Methods inherited from class mondrian.olap.QueryPart
explain, getChildren
-
-
-
-
Constructor Detail
-
Id
public Id(Id.Segment segment)
Creates an identifier containing a single part.- Parameters:
segment- Segment, consisting of a name and quoting style
-
Id
public Id(List<Id.Segment> segments)
-
-
Method Detail
-
getCategory
public int getCategory()
Description copied from interface:ExpReturns theCategoryof the expression.- Specified by:
getCategoryin interfaceExp
-
getType
public Type getType()
Description copied from interface:ExpReturns the type of this expression. Never null.
-
toStringArray
public String[] toStringArray()
-
getSegments
public List<Id.Segment> getSegments()
-
getElement
public Id.Segment getElement(int i)
-
append
public Id append(Id.Segment segment)
Returns a new Identifier consisting of this one with another segment appended. Does not modify this Identifier.- Parameters:
segment- Name of segment- Returns:
- New identifier
-
accept
public Exp accept(Validator validator)
Description copied from interface:ExpValidates this expression. The validator acts in the role of 'visitor' (see Gang of Four 'visitor pattern'), and an expression in the role of 'visitee'.
-
accept
public Object accept(MdxVisitor visitor)
Description copied from interface:ExpAccepts a visitor to this Exp. The implementation should generally dispatches to theMdxVisitor.visit(mondrian.olap.Query)method appropriate to the type of expression.
-
-