API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.beans. Statement View Source
Author(s)
Philip Milne
Since
1.4
Version
1.31 05/23/06
Serial
Hierarchy
 Object
      Statement
Implements
Subclasses
Description
public class Statement
  A Statement object represents a primitive statement in which a single method is applied to a target and a set of arguments - as in "a.setFoo(b)".
See also:   
Constructors
public Statement (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
  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 ()
  Returns the arguments of this statement.
public String getMethodName ()
  Returns the name of the method.
public Object getTarget ()
  Returns the target of this statement.
pack-private String instanceName (Object instance)
pack-private Object invoke () throws Exception
public String toString ()
Prints the value of this statement using a Java-style syntax.
Fields
Hide/Show inherited fields
pack-private Object arguments
pack-privatestatic ExceptionListener defaultExceptionListener
pack-private String methodName
pack-private Object target
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar