APIdia Launch Partner
Top Description Fields Constructors Methods
javax.management

pack-priv Class BinaryRelQueryExp

extends QueryEval
implements QueryExp
Class Inheritance
All Implemented Interfaces
javax.management.QueryExp, 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
BinaryRelQueryExp()

Basic Constructor.

public
BinaryRelQueryExp(int op, ValueExp v1, ValueExp v2)

Creates a new BinaryRelQueryExp with operator op applied on v1 and v2 values.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

True if the query was successfully applied to the MBean, false otherwise.
apply
(ObjectName
The name of the MBean on which the BinaryRelQueryExp will be applied.
name
)

Implements javax.management.QueryExp.apply.

Applies the BinaryRelQueryExp on an MBean.

public ValueExp
getLeftValue()

Returns the left value of the query.

public int
getOperator()

Returns the operator of the query.

public ValueExp
getRightValue()

Returns the right value of the query.

private String
public String
toString()

Overrides java.lang.Object.toString.

Returns the string representing the object.

Inherited from javax.management.QueryEval:
getMBeanServersetMBeanServer

Field Detail

exp1back to summary
private ValueExp exp1
exp2back to summary
private ValueExp exp2
relOpback to summary
private int relOp
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.management.QueryEval.serialVersionUID.

Constructor Detail

BinaryRelQueryExpback to summary
public BinaryRelQueryExp()

Basic Constructor.

BinaryRelQueryExpback to summary
public BinaryRelQueryExp(int op, ValueExp v1, ValueExp v2)

Creates a new BinaryRelQueryExp with operator op applied on v1 and v2 values.

Method Detail

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

Implements javax.management.QueryExp.apply.

Applies the BinaryRelQueryExp on an MBean.

Parameters
name:ObjectName

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

Returns:boolean

True if the query was successfully applied to the MBean, false otherwise.

Exceptions
BadStringOperationException:

Doc from javax.management.QueryExp.apply.

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

BadBinaryOpValueExpException:

Doc from javax.management.QueryExp.apply.

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

BadAttributeValueExpException:

Doc from javax.management.QueryExp.apply.

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

InvalidApplicationException:

Doc from javax.management.QueryExp.apply.

when an invalid apply is attempted

getLeftValueback to summary
public ValueExp getLeftValue()

Returns the left value of the query.

getOperatorback to summary
public int getOperator()

Returns the operator of the query.

getRightValueback to summary
public ValueExp getRightValue()

Returns the right value of the query.

relOpStringback to summary
private String relOpString()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns the string representing the object.

Annotations
@Override