public abstract class ScriptType
extends org.openide.ServiceType
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ScriptType.Context |
Deprecated.
Scripting context.
|
| Constructor | Description |
|---|---|
ScriptType() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract boolean |
acceptFileObject(org.openide.filesystems.FileObject fo) |
Deprecated.
The script type can decide whether it will be able to execute
the given file object.
|
abstract void |
addVariable(java.lang.String name,
java.lang.Object value) |
Deprecated.
Adds variable with name to the variables known by the script type.
|
java.lang.Object |
eval(java.io.Reader r) |
Deprecated.
Calls eval(Reader, Context) with getDefaultContext() as
the second argument.
|
abstract java.lang.Object |
eval(java.io.Reader r,
ScriptType.Context context) |
Deprecated.
Evaluate the script given in the form of a Reader.
|
java.lang.Object |
eval(java.lang.String script) |
Deprecated.
Calls eval(String, Context) with getDefaultContext() as
the second argument.
|
abstract java.lang.Object |
eval(java.lang.String script,
ScriptType.Context context) |
Deprecated.
Evaluate the script given in the form of a string.
|
void |
exec(java.io.Reader r) |
Deprecated.
Calls exec(Reader, Context) with getDefaultContext() as
the second argument.
|
abstract void |
exec(java.io.Reader r,
ScriptType.Context context) |
Deprecated.
Execute the script given in the form of a Reader.
|
void |
exec(java.lang.String script) |
Deprecated.
Calls exec(String, Context) with getDefaultContext() as
the second argument.
|
abstract void |
exec(java.lang.String script,
ScriptType.Context context) |
Deprecated.
Execute the script given in the form of a string.
|
static ScriptType |
find(java.lang.Class clazz) |
Deprecated.
Please use
Lookup instead. |
static ScriptType |
find(java.lang.String name) |
Deprecated.
Find the script type with requested name.
|
static ScriptType |
getDefault() |
Deprecated.
Probably meaningless, find all available types and filter with
acceptFileObject(org.openide.filesystems.FileObject) instead. |
static java.util.Enumeration |
scriptTypes() |
Deprecated.
Please use
Lookup instead. |
public abstract boolean acceptFileObject(org.openide.filesystems.FileObject fo)
fo - a file to testpublic abstract java.lang.Object eval(java.io.Reader r,
ScriptType.Context context)
throws java.lang.reflect.InvocationTargetException
r - context - java.lang.reflect.InvocationTargetExceptionpublic final java.lang.Object eval(java.io.Reader r)
throws java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetExceptionpublic abstract java.lang.Object eval(java.lang.String script,
ScriptType.Context context)
throws java.lang.reflect.InvocationTargetException
script - context - java.lang.reflect.InvocationTargetExceptionpublic final java.lang.Object eval(java.lang.String script)
throws java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetExceptionpublic abstract void exec(java.io.Reader r,
ScriptType.Context context)
throws java.lang.reflect.InvocationTargetException
r - the contents of the scriptcontext - the context in which to evaluate itjava.lang.reflect.InvocationTargetExceptionpublic final void exec(java.io.Reader r)
throws java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetExceptionpublic abstract void exec(java.lang.String script,
ScriptType.Context context)
throws java.lang.reflect.InvocationTargetException
script - context - java.lang.reflect.InvocationTargetExceptionpublic final void exec(java.lang.String script)
throws java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetExceptionpublic abstract void addVariable(java.lang.String name,
java.lang.Object value)
name - the name for the newly created variablevalue - initial value variable value (can be null).public static java.util.Enumeration scriptTypes()
Lookup instead.ScriptTypespublic static ScriptType find(java.lang.Class clazz)
Lookup instead.clazz - the class of the script type looked fornull if it does not existpublic static ScriptType find(java.lang.String name)
name - (display) name of script type to findnull if it does not existpublic static ScriptType getDefault()
acceptFileObject(org.openide.filesystems.FileObject) instead.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.