org.concord.util.script
Class HandlerDeclaration

java.lang.Object
  |
  +--org.concord.util.script.ScriptObject
        |
        +--org.concord.util.script.Statement
              |
              +--org.concord.util.script.MethodDeclaration
                    |
                    +--org.concord.util.script.HandlerDeclaration
All Implemented Interfaces:
java.beans.BeanInfo

public class HandlerDeclaration
extends MethodDeclaration

The HandlerDeclaration class holds the state asscociated with the definition of a script event handler. 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.lang.String className
           
protected  EventHandler handler
           
protected  java.lang.String handlerName
           
protected  java.lang.String prefix
           
 
Fields inherited from class org.concord.util.script.MethodDeclaration
parameters, 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
HandlerDeclaration(Script script)
           
 
Method Summary
 void delete()
           
 EventHandler getHandler()
           
 java.lang.String getHandlerName()
           
 java.lang.String getMethodName(boolean addName)
           
 void setClassName(java.lang.String className)
           
 void setHandlerName(java.lang.String handlerName)
           
 
Methods inherited from class org.concord.util.script.MethodDeclaration
addParameter, getParameters, getStatement, removeParameter, setParameters, setStatement
 
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

className

protected java.lang.String className

handlerName

protected java.lang.String handlerName

prefix

protected java.lang.String prefix

handler

protected EventHandler handler
Constructor Detail

HandlerDeclaration

public HandlerDeclaration(Script script)
Method Detail

delete

public void delete()
Overrides:
delete in class MethodDeclaration

setClassName

public void setClassName(java.lang.String className)

setHandlerName

public void setHandlerName(java.lang.String handlerName)

getHandlerName

public java.lang.String getHandlerName()

getMethodName

public java.lang.String getMethodName(boolean addName)

getHandler

public EventHandler getHandler()