org.concord.util.script
Class MethodDeclaration
java.lang.Object
|
+--org.concord.util.script.ScriptObject
|
+--org.concord.util.script.Statement
|
+--org.concord.util.script.MethodDeclaration
- All Implemented Interfaces:
- java.beans.BeanInfo
- Direct Known Subclasses:
- HandlerDeclaration
- public class MethodDeclaration
- extends Statement
The MethodDeclaration class holds the state asscociated with
the definition of a script method. A script method consists of
a list of formal parameters (variable names) and a statement.
The method declaration is not interpreted, it is used by the
method invocation expression to retrieve the statement and formal
parameters.
- Version:
- $Revision: 1.1.1.1 $ $Date: 2001/04/28 00:39:30 $
- Author:
- $Author: ed $
Fields inherited from class org.concord.util.script.ScriptObject |
beginColumn, beginLine, debug, deleted, doConversion, endColumn, endLine, name, nil, runtimeTable, script |
Fields inherited from interface java.beans.BeanInfo |
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
Methods inherited from class org.concord.util.script.ScriptObject |
findConstructor, findMethod, getAdditionalBeanInfo, getArrayValue, getAtom, getBeanDescriptor, getCurrentFrame, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getField, getFieldValue, getIcon, getMethodDescriptors, getName, getPropertyDescriptors, getScript, popFrame, pushFrame, setArrayValue, setCurrentFrame, setFieldValue, setName, setScript, setSourceBounds |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parameters
protected java.util.Stack parameters
statement
protected Statement statement
MethodDeclaration
public MethodDeclaration()
MethodDeclaration
public MethodDeclaration(Script script)
delete
public void delete()
- Overrides:
delete
in class ScriptObject
removeParameter
public boolean removeParameter(java.lang.String varName)
addParameter
public void addParameter(java.lang.String varName)
getParameters
public java.util.Stack getParameters()
setParameters
public void setParameters(java.util.Stack params)
getStatement
public Statement getStatement()
setStatement
public void setStatement(Statement stmt)