01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package javax.management;
10:
11: /**
12: * @version $Revision: 1.6 $
13: * @serial include
14: */
15: class BooleanValueExp extends QueryEval implements ValueExp {
16: private static final long serialVersionUID = 7754922052666594581L;
17:
18: private final boolean val;
19:
20: BooleanValueExp(boolean val) {
21: this .val = val;
22: }
23:
24: boolean booleanValue() {
25: return val;
26: }
27:
28: public ValueExp apply(ObjectName name)
29: throws BadStringOperationException,
30: BadBinaryOpValueExpException,
31: BadAttributeValueExpException, InvalidApplicationException {
32: return this;
33: }
34: }
|