org.concord.util.script
Class ExtendsDeclaration

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

public class ExtendsDeclaration
extends Statement

The extend statement allows a script to extend an existing java object. The statement evaluates an invocation expression that yields and object which is used as the base object. A method of the base object gets called whenever the interpreter fails to find a regular script method of the same name.


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
ExtendsDeclaration(Script script)
           
 
Method Summary
 void delete()
           
 void interpret()
          This does nothing.
 void setExtendsExpression(InvocationExpression extend)
           
 
Methods inherited from class org.concord.util.script.Statement
getLocals
 
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
 

Constructor Detail

ExtendsDeclaration

public ExtendsDeclaration(Script script)
Method Detail

delete

public void delete()
Overrides:
delete in class ScriptObject

setExtendsExpression

public void setExtendsExpression(InvocationExpression extend)

interpret

public void interpret()
Description copied from class: ScriptObject
This does nothing. Maybe should be abstract?
Overrides:
interpret in class Statement