|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoscript.data.Value
oscript.data.Debugger
The Debugger
object provides access to objects, including (not
for java objects) access to the object's private members. Also, some sort
of security model should be provided.
Nested Class Summary | |
static interface |
Debugger.Breakpoint
An interface to be implemented by a breakpoint handler. |
static interface |
Debugger.MemberAccessor
An object implementing this interface is implemented to provide access to members of some object. |
Field Summary | |
static java.lang.String[] |
MEMBER_NAMES
|
static java.lang.String |
PARENT_TYPE_NAME
|
static Value |
TYPE
The type object for an instance of Object. |
static java.lang.String |
TYPE_NAME
|
Fields inherited from class oscript.data.Value |
DEBUG, NULL, UNDEFINED |
Constructor Summary | |
Debugger()
Class Constructor. |
|
Debugger(MemberTable args)
Class Constructor. |
Method Summary | |
static Value |
_getCallee(FunctionScope scope)
|
static java.lang.Class |
_getClass(Value val)
|
static AbstractFile |
_getFile(oscript.data.FileScope scope)
|
static Value |
_getMember(Value val,
Value name)
|
static Scope |
_getPreviousScope(Scope scope)
|
static Value |
_getType(Value val)
|
static java.util.Set |
_memberSet(Value val)
|
java.lang.String |
castToString()
Convert this object to a native java String value. |
static java.util.Enumeration |
enumerateMembers(Value obj)
Deprecated. use Value.memberSet() |
static java.util.Collection |
getBreakpointFiles()
Return a collection view of the files with breakpoints set in them. |
static java.util.Collection |
getBreakpointLines(AbstractFile file)
Return a collection of line numbers of lines with breakpoints set in the specified file. |
static Debugger.MemberAccessor |
getMemberAccessor(Value obj,
Value name)
Access a member of an object. |
protected Value |
getTypeImpl()
Get the type of this object. |
static boolean |
mayHaveBreakpoints(NodeEvaluator ne)
Determine if this node evaluator might have one or more breakpoints within it's body. |
static void |
runBreakpoints(Scope scope,
AbstractFile file,
int line)
Called by the stack-frame as the program is evaluated. |
static Debugger.Breakpoint |
setBreakpoint(AbstractFile file,
int linei,
Debugger.Breakpoint bp)
Set the breakpoint for the specified file:lineno. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Value TYPE
public static final java.lang.String PARENT_TYPE_NAME
public static final java.lang.String TYPE_NAME
public static final java.lang.String[] MEMBER_NAMES
Constructor Detail |
public Debugger()
public Debugger(MemberTable args)
args
- arguments to this constructor
PackagedScriptObjectException(Exception)
- if wrong number of argsMethod Detail |
protected Value getTypeImpl()
Value.getType()
.
getTypeImpl
in class Value
public java.lang.String castToString() throws PackagedScriptObjectException
String
value.
castToString
in class Value
PackagedObjectException(NoSuchMethodException)
PackagedScriptObjectException
public static final boolean mayHaveBreakpoints(NodeEvaluator ne)
true
when there are
no break points, but should never return false
if there
are.
public static final void runBreakpoints(Scope scope, AbstractFile file, int line)
public static java.util.Collection getBreakpointFiles()
AbstractFile
public static java.util.Collection getBreakpointLines(AbstractFile file)
Integer
public static Debugger.Breakpoint setBreakpoint(AbstractFile file, int linei, Debugger.Breakpoint bp)
bp
is null
then this clears the breakpoint. Returns the
previous breakpoint on this file:lineno or null
if none.
file
- the filebp
- the breakpoint handler or null
public static java.util.Enumeration enumerateMembers(Value obj)
Value.memberSet()
public static java.util.Set _memberSet(Value val)
public static Value _getMember(Value val, Value name)
public static java.lang.Class _getClass(Value val)
public static Value _getType(Value val)
public static Scope _getPreviousScope(Scope scope)
public static Value _getCallee(FunctionScope scope)
public static AbstractFile _getFile(oscript.data.FileScope scope)
public static Debugger.MemberAccessor getMemberAccessor(Value obj, Value name)
obj
- the object to access a member ofname
- the name of the member to access
enumerateMembers(oscript.data.Value)
,
#MemberAccessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |