public class AttributeValueExp extends Object implements ValueExp
表示用作关系约束的参数的属性。通常采用Query.attr
这个类的实例。
一个AttributeValueExp
可以用于任何一个ValueExp
是必需的。
Constructor and Description |
---|
AttributeValueExp()
过时的。
用此构造函数创建的实例不能在查询中使用。
|
AttributeValueExp(String attr)
创建表示指定的对象的属性的一个新
AttributeValueExp ,命名属性。
|
Modifier and Type | Method and Description |
---|---|
ValueExp |
apply(ObjectName name)
适用于
AttributeValueExp MBean的。
|
protected Object |
getAttribute(ObjectName name)
返回给定的属性在名叫MBean的价值。
|
String |
getAttributeName()
返回属性名称的字符串表示形式。
|
void |
setMBeanServer(MBeanServer s)
过时的。
这种方法没有效果。MBean服务器用来获取属性值是
QueryEval.getMBeanServer() 。
|
String |
toString()
返回表示其值的字符串。
|
@Deprecated public AttributeValueExp()
AttributeValueExp
。
public String getAttributeName()
public ValueExp apply(ObjectName name) throws BadStringOperationException, BadBinaryOpValueExpException, BadAttributeValueExpException, InvalidApplicationException
适用于AttributeValueExp
MBean的。此方法调用getAttribute(name)
包的结果作为一个ValueExp
。返回的值必须是一个Number
getAttribute
,String
,或Boolean
;否则该方法抛出一个BadAttributeValueExpException
,这将导致含有查询是假的,这name
。
apply
接口
ValueExp
name
-名称的MBean的
AttributeValueExp
将应用。
ValueExp
。
BadAttributeValueExpException
InvalidApplicationException
BadStringOperationException
BadBinaryOpValueExpException
@Deprecated public void setMBeanServer(MBeanServer s)
QueryEval.getMBeanServer()
。
setMBeanServer
接口
ValueExp
s
的MBean服务器的查询被执行。
protected Object getAttribute(ObjectName name)
返回给定的属性在名叫MBean的价值。如果试图访问该属性的尝试生成一个异常,返回空。
使用MBean服务器返回的是一个QueryEval.getMBeanServer()
。
name
- MBean的属性将返回的名字。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.