|
Oracle® OLAP Java API Reference 11g Release 1 (11.1) B28128-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.olapi.syntax.SyntaxObject
oracle.olapi.syntax.DataObject
oracle.olapi.syntax.Expression
oracle.olapi.syntax.TypedExpression
oracle.olapi.syntax.RowExpression
oracle.olapi.syntax.BinaryOperatorExpression
public final class BinaryOperatorExpression
A RowExpression
that represents a binary operator and two expressions that are the operands of the expression. A BinaryOperatorExpression
is like a compound expression in SQL. The binary operators specify addition, subtraction, multiplication, division, or concatenation operations.
Field Summary | |
---|---|
static java.lang.String |
CONCAT A constant that represents the || concatenation operator. |
static java.lang.String |
DIVIDE A constant that represents the / division operator. |
static java.lang.String |
MINUS A constant that represents the - subtraction binary operator. |
static java.lang.String |
PLUS A constant that represents the + addition binary operator. |
static java.lang.String |
TIMES A constant that represents the * multiplication operator. |
Constructor Summary | |
---|---|
BinaryOperatorExpression(java.lang.String operator, TypedExpression[] arguments) Creates a BinaryOperatorExpression that represents the operation specified by the binary operator upon the arguments. |
|
BinaryOperatorExpression(TypedExpression lhsArgument, java.lang.String operator, TypedExpression rhsArgument) Creates a BinaryOperatorExpression that represents the operation specified by the binary operator upon the arguments. |
Method Summary | |
---|---|
TypedExpression[] |
getArguments() Gets the expressions that are the arguments that are associated with this BinaryOperatorExpression . |
java.lang.String |
getOperator() Gets the operator that is associated with this BinaryOperatorExpression . |
java.lang.Object |
visit(SyntaxObjectVisitor visitor, java.lang.Object context) Calls the visitBinaryOperatorExpression method of the SyntaxObjectVisitor and passes that method this BinaryOperatorExpression and an Object . |
Methods inherited from class oracle.olapi.syntax.RowExpression |
---|
isCompositeObject |
Methods inherited from class oracle.olapi.syntax.Expression |
---|
getSource |
Methods inherited from class oracle.olapi.syntax.SyntaxObject |
---|
fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PLUS
+
addition binary operator.
public static final java.lang.String MINUS
-
subtraction binary operator.
public static final java.lang.String DIVIDE
/
division operator.
public static final java.lang.String TIMES
*
multiplication operator.
public static final java.lang.String CONCAT
||
concatenation operator.
Constructor Detail |
---|
public BinaryOperatorExpression(java.lang.String operator, TypedExpression[] arguments)
BinaryOperatorExpression
that represents the operation specified by the binary operator upon the arguments.
operator
- One of the constants of this class, such as BinaryOperatorExpression.PLUS
.arguments
- An array of TypedExpression
objects upon which the binary operator acts.public BinaryOperatorExpression(TypedExpression lhsArgument, java.lang.String operator, TypedExpression rhsArgument)
BinaryOperatorExpression
that represents the operation specified by the binary operator upon the arguments.
lhsArgument
- A TypedExpression
for the left-hand argument of the operation.operator
- One of the constants of this class, such as BinaryOperatorExpression.PLUS
.rhsArgument
- A TypedExpression
for the right-hand argument of the operation.Method Detail |
---|
public java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
visitBinaryOperatorExpression
method of the SyntaxObjectVisitor
and passes that method this BinaryOperatorExpression
and an Object
.visit
in class SyntaxObject
visitor
- A SyntaxObjectVisitor
.context
- An Object
.Object
returned by the visitBinaryOperatorExpression
method.public java.lang.String getOperator()
BinaryOperatorExpression
.String
that contains the operator of this BinaryOperatorExpression
.public TypedExpression[] getArguments()
BinaryOperatorExpression
.TypedExpression
objects associated with this BinaryOperatorExpression
.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |