APIdia Launch Partner
Top Description Fields Constructors Methods
javax.management

pack-priv Class BinaryOpValueExp

extends QueryEval
implements ValueExp
Class Inheritance
All Implemented Interfaces
javax.management.ValueExp, java.io.Serializable

This class is used by the query-building mechanism to represent binary operations.
Since
1.5

Field Summary

Modifier and TypeField and Description
private ValueExp
private ValueExp
private int
private static final long

Constructor Summary

AccessConstructor and Description
public
BinaryOpValueExp()

Basic Constructor.

public
BinaryOpValueExp(int o, ValueExp v1, ValueExp v2)

Creates a new BinaryOpValueExp using operator o applied on v1 and v2 values.

Method Summary

Modifier and TypeMethod and Description
public ValueExp

Returns:

The ValueExp.
apply
(ObjectName
The name of the MBean on which the BinaryOpValueExp will be applied.
name
)

Implements javax.management.ValueExp.apply.

Applies the BinaryOpValueExp on a MBean.

public ValueExp
getLeftValue()

Returns the left value of the value expression.

public int
getOperator()

Returns the operator of the value expression.

public ValueExp
getRightValue()

Returns the right value of the value expression.

private String
private String
parens(ValueExp subexp, boolean left)

private int
precedence(int xop)

public void
setMBeanServer(MBeanServer s)

Overrides javax.management.QueryEval.setMBeanServer.

Implements javax.management.ValueExp.setMBeanServer.

Deprecated

Sets the MBean server on which the query is to be performed.

public String
toString()

Overrides java.lang.Object.toString.

Returns the string representing the object

Inherited from javax.management.QueryEval:
getMBeanServer

Field Detail

exp1back to summary
private ValueExp exp1
exp2back to summary
private ValueExp exp2
opback to summary
private int op
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.management.QueryEval.serialVersionUID.

Constructor Detail

BinaryOpValueExpback to summary
public BinaryOpValueExp()

Basic Constructor.

BinaryOpValueExpback to summary
public BinaryOpValueExp(int o, ValueExp v1, ValueExp v2)

Creates a new BinaryOpValueExp using operator o applied on v1 and v2 values.

Method Detail

applyback to summary
public ValueExp apply(ObjectName name) throws BadStringOperationException, BadBinaryOpValueExpException, BadAttributeValueExpException, InvalidApplicationException

Implements javax.management.ValueExp.apply.

Applies the BinaryOpValueExp on a MBean.

Parameters
name:ObjectName

The name of the MBean on which the BinaryOpValueExp will be applied.

Returns:ValueExp

The ValueExp.

Exceptions
BadStringOperationException:

Doc from javax.management.ValueExp.apply.

when an invalid string operation is passed to a method for constructing a query

BadBinaryOpValueExpException:

Doc from javax.management.ValueExp.apply.

when an invalid expression is passed to a method for constructing a query

BadAttributeValueExpException:

Doc from javax.management.ValueExp.apply.

when an invalid MBean attribute is passed to a query constructing method

InvalidApplicationException:

Doc from javax.management.ValueExp.apply.

when an invalid apply is attempted

getLeftValueback to summary
public ValueExp getLeftValue()

Returns the left value of the value expression.

getOperatorback to summary
public int getOperator()

Returns the operator of the value expression.

getRightValueback to summary
public ValueExp getRightValue()

Returns the right value of the value expression.

opStringback to summary
private String opString() throws BadBinaryOpValueExpException
parensback to summary
private String parens(ValueExp subexp, boolean left) throws BadBinaryOpValueExpException
precedenceback to summary
private int precedence(int xop) throws BadBinaryOpValueExpException
setMBeanServerback to summary
public void setMBeanServer(MBeanServer s)

Overrides javax.management.QueryEval.setMBeanServer.

Implements javax.management.ValueExp.setMBeanServer.

Doc from javax.management.ValueExp.setMBeanServer.

Deprecated

Sets the MBean server on which the query is to be performed.

Annotations
@Deprecated
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns the string representing the object