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 $

Field Summary
protected  java.util.Stack parameters
           
protected  Statement statement
           
 
Fields inherited from class org.concord.util.script.Statement
empty
 
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
 
Constructor Summary
MethodDeclaration()
           
MethodDeclaration(Script script)
           
 
Method Summary
 void addParameter(java.lang.String varName)
           
 void delete()
           
 java.util.Stack getParameters()
           
 Statement getStatement()
           
 boolean removeParameter(java.lang.String varName)
           
 void setParameters(java.util.Stack params)
           
 void setStatement(Statement stmt)
           
 
Methods inherited from class org.concord.util.script.Statement
getLocals, interpret
 
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
 

Field Detail

parameters

protected java.util.Stack parameters

statement

protected Statement statement
Constructor Detail

MethodDeclaration

public MethodDeclaration()

MethodDeclaration

public MethodDeclaration(Script script)
Method Detail

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)