Package mondrian.olap
Class Id
java.lang.Object
mondrian.olap.QueryPart
mondrian.olap.ExpBase
mondrian.olap.Id
Multi-part identifier.
- Author:
- jhyde, 21 January, 1999
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classIdentifier segment representing a key, possibly composite.static classComponent in a compound identifier that describes the name of an object.static enumstatic classComponent in a compound identifier. -
Constructor Summary
ConstructorsConstructorDescriptionId(List<Id.Segment> segments) Id(Id.Segment segment) Creates an identifier containing a single part. -
Method Summary
Modifier and TypeMethodDescriptionaccept(MdxVisitor visitor) Accepts a visitor to this Exp.Validates this expression.append(Id.Segment segment) Returns a new Identifier consisting of this one with another segment appended.clone()intReturns theCategoryof the expression.getElement(int i) getType()Returns the type of this expression.toString()String[]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, unparseListMethods inherited from class mondrian.olap.QueryPart
explain, getChildren
-
Constructor Details
-
Id
Creates an identifier containing a single part.- Parameters:
segment- Segment, consisting of a name and quoting style
-
Id
-
-
Method Details
-
clone
-
getCategory
public int getCategory()Description copied from interface:ExpReturns theCategoryof the expression.- Specified by:
getCategoryin interfaceExp
-
getType
Description copied from interface:ExpReturns the type of this expression. Never null. -
toString
-
toStringArray
-
getSegments
-
getElement
-
append
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
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
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. -
unparse
Description copied from class:QueryPartWrites a string representation of this parse tree node to the given writer.
-