| java.lang.Object org.cougaar.lib.contract.lang.OpImpl
All known Subclasses: org.cougaar.lib.contract.lang.op.logical.AndOp, org.cougaar.lib.contract.lang.op.logical.OrOp, org.cougaar.lib.contract.lang.op.logical.TrueOp, org.cougaar.lib.contract.lang.op.logical.NotOp, org.cougaar.lib.contract.lang.op.list.ExistsOp, org.cougaar.lib.contract.lang.op.reflect.ApplyOp, org.cougaar.lib.contract.lang.op.list.EmptyOp, org.cougaar.lib.contract.lang.op.logical.FalseOp, org.cougaar.lib.contract.lang.op.reflect.FieldOp, org.cougaar.lib.contract.lang.op.reflect.InstanceOfOp, org.cougaar.lib.contract.lang.op.constant.GetOp, org.cougaar.lib.contract.lang.op.list.AllOp, org.cougaar.lib.contract.lang.op.constant.ConstantOp, org.cougaar.lib.contract.lang.op.reflect.ReflectOp, org.cougaar.lib.contract.lang.op.reflect.ThisOp, org.cougaar.lib.contract.lang.op.reflect.MethodOp,
OpImpl | abstract public class OpImpl implements Op(Code) | | Base (abstract) implementation of Op .
See Also: Op |
Constructor Summary | |
public | OpImpl() |
allows | public boolean allows(Operator oper)(Code) | | allows(Operator ) is computed by
org.cougaar.lib.contract.lang.compare.Allow .
|
equals | public boolean equals(Operator oper)(Code) | | equals(Operator ) is computed by
org.cougaar.lib.contract.lang.compare.Equal .
|
execute | public boolean execute(Object o)(Code) | | Subclass should redefine either operate and/or
execute!
|
getID | abstract public int getID()(Code) | | Parser additions to org.cougaar.lib.contract.Operator
|
getReturnClass | public Class getReturnClass()(Code) | | Most Op s return boolean.
|
impliedBy | public boolean impliedBy(Operator oper)(Code) | | Equivalent to
oper.implies(this).
|
implies | public boolean implies(Operator oper)(Code) | | implies(Operator ) is computed by
org.cougaar.lib.contract.lang.compare.Imply .
|
isReturnBoolean | public boolean isReturnBoolean()(Code) | | Most Op s return boolean.
|
operate | public Object operate(Object o)(Code) | | Subclass should redefine either operate and/or
execute!
|
setConst | public void setConst(String key, Object val)(Code) | | Sets a constant value in the Op , which is accessed
using "(get key)".
As an artifact of the tree structure, Op implementations
need to pass this method down to sub-Op s:
for all Op fields f0..fn, f.setConst(key, val);
to react the GetOps, which actually uses the values.
|
|
|