public class ContextSensitiveCodeRunner extends Object
| Constructor and Description |
|---|
ContextSensitiveCodeRunner() |
| Modifier and Type | Method and Description |
|---|---|
static void |
collectLocalSymbols(IType enclosingType,
ISymbolTable symTable,
IParsedElement parsedElement,
int iOffset) |
static Object |
runMeSomeCode(Object enclosingInstance,
ClassLoader cl,
Object[] extSyms,
String strText,
String strClassContext,
String strContextElementClass,
int iSourcePosition)
Intended for use with a debugger to evaluate arbitrary expressions/programs
in the context of a source position being debugged, usually at a breakpoint.
|
public static Object runMeSomeCode(Object enclosingInstance, ClassLoader cl, Object[] extSyms, String strText, String strClassContext, String strContextElementClass, int iSourcePosition)
enclosingInstance - The instance of the object immediately enclosing the source position.extSyms - An array of adjacent name/value pairs corresponding with the names and values of local symbols in scope.strText - The text of the expression/program.strClassContext - The name of the top-level class enclosing the the source position.strContextElementClass - The name of the class immediately enclosing the source position (can be same as strClassContext).iSourcePosition - The index of the source position within the containing file.public static void collectLocalSymbols(IType enclosingType, ISymbolTable symTable, IParsedElement parsedElement, int iOffset)
Copyright © 2019. All rights reserved.