com.hammurapi.config
Interface Script

All Superinterfaces:
CommonObject, org.eclipse.emf.ecore.EObject, Factory, org.eclipse.emf.common.notify.Notifier, PropertySource
All Known Subinterfaces:
NamedScript
All Known Implementing Classes:
NamedScriptImpl, ScriptImpl

public interface Script
extends Factory, PropertySource

A representation of the model object 'Script'. Script (Java language method) which produces an object.

The following features are supported:

See Also:
ConfigPackage.getScript()

Method Summary
<T> T
eval(Class<T> returnType, org.eclipse.emf.common.util.EList<String> parameterNames, org.eclipse.emf.common.util.EList<Class<?>> parameterTypes, org.eclipse.emf.common.util.EList<Object> parameters, ClassLoader classLoader)
          Evaluates script.
 String getCode()
          Returns the value of the 'Code' attribute.
 void setCode(String value)
          Sets the value of the 'Code' attribute.
 
Methods inherited from interface com.hammurapi.config.Factory
compile, create, getConfigScript, getDescription, getHomePage, getId, getService, getSource, getSupportedExecutionEnvironments, isEnabled, setConfigScript, setDescription, setEnabled, setHomePage, setId
 
Methods inherited from interface com.hammurapi.party.CommonObject
getRoles
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface com.hammurapi.config.PropertySource
getClassPath, getProfile, getProperty, injectProperties
 

Method Detail

getCode

String getCode()
Returns the value of the 'Code' attribute.

If the meaning of the 'Code' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Code' attribute.
See Also:
setCode(String), ConfigPackage.getScript_Code()

setCode

void setCode(String value)
Sets the value of the 'Code' attribute.

Parameters:
value - the new value of the 'Code' attribute.
See Also:
getCode()

eval

<T> T eval(Class<T> returnType,
           org.eclipse.emf.common.util.EList<String> parameterNames,
           org.eclipse.emf.common.util.EList<Class<?>> parameterTypes,
           org.eclipse.emf.common.util.EList<Object> parameters,
           ClassLoader classLoader)
       throws ConfigurationException
Evaluates script.

Parameters:
returnType - Script return type.
parameterNames - Parameter names.
parameterTypes - Parameter types.
parameters - Parameters.
classLoader - Class loader.
Throws:
ConfigurationException