com.judoscript.bio
Class UserDefined.UserType

java.lang.Object
  extended by com.judoscript.bio.UserDefined.UserType
All Implemented Interfaces:
XMLDumpable, java.io.Serializable
Direct Known Subclasses:
JavaExtension.Type, UserDefined.Type
Enclosing class:
UserDefined

public abstract static class UserDefined.UserType
extends java.lang.Object
implements XMLDumpable, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.util.HashMap fxns
           
protected  java.lang.String name
           
 
Constructor Summary
protected UserDefined.UserType(java.lang.String name)
           
 
Method Summary
 void addFunction(Function f)
           
 void addFunction(java.lang.String name, Function f)
           
abstract  ObjectInstance create()
           
 Function getConstructor()
           
 Function getFunction(java.lang.String name)
           
 java.lang.String getName()
           
 boolean hasConstructor()
           
 boolean hasFunction(java.lang.String name)
           
 void setConstructor(Function ctor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.judoscript.util.XMLDumpable
dump
 

Field Detail

name

protected java.lang.String name

fxns

protected java.util.HashMap fxns
Constructor Detail

UserDefined.UserType

protected UserDefined.UserType(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

setConstructor

public void setConstructor(Function ctor)

getConstructor

public Function getConstructor()

hasConstructor

public boolean hasConstructor()

addFunction

public void addFunction(Function f)
                 throws ExceptionRuntime
Throws:
ExceptionRuntime

addFunction

public void addFunction(java.lang.String name,
                        Function f)
                 throws ExceptionRuntime
Throws:
ExceptionRuntime

getFunction

public Function getFunction(java.lang.String name)

hasFunction

public boolean hasFunction(java.lang.String name)

create

public abstract ObjectInstance create()
                               throws java.lang.Throwable
Throws:
java.lang.Throwable