API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.beans. Expression View Source
Author(s)
Philip Milne
Since
1.4
Version
1.3 11/15/00
Serial
Hierarchy
 Object
      Statement
          Expression
Implements
Subclasses
Description
public class Expression
  An Expression object represents a primitive expression in which a single method is applied to a target and a set of arguments to return a result - as in "a.getFoo()".
Constructors
public Expression (Object value, Object target, String methodName, Object arguments)
  Creates a new Expression object for a method that returns a result.
public Expression (Object target, String methodName, Object arguments)
  Creates a new Statement object with a target, methodName and arguments as per the parameters.
Methods
Hide/Show inherited methods
public void execute () throws Exception [Inherited From Statement]
  The execute method finds a method whose name is the same as the methodName property, and invokes the method on the target.
public Object getArguments () [Inherited From Statement]
  Returns the arguments of this statement.
public String getMethodName () [Inherited From Statement]
  Returns the name of the method.
public Object getTarget () [Inherited From Statement]
  Returns the target of this statement.
public Object getValue () throws Exception
  If the value property of this instance is not already set, this method dynamically finds the method with the specified methodName on this target with these arguments and calls it.
pack-private String instanceName (Object instance) [Overrides Statement]
pack-private Object invoke () throws Exception [Inherited From Statement]
public void setValue (Object value)
  Sets the value of this expression to value.
public String toString () [Overrides Statement]
Prints the value of this expression using a Java-style syntax.
Fields
Hide/Show inherited fields
pack-private Object arguments [Inherited From Statement]
pack-privatestatic ExceptionListener defaultExceptionListener [Inherited From Statement]
pack-private String methodName [Inherited From Statement]
pack-private Object target [Inherited From Statement]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar