org.netbeans.modules.debugger.jpda.expr |
|
Java Source File Name | Type | Comment |
Assert.java | Class | Support class to help assertions and error processing when evaluating an expression. |
Assert2.java | Class | Support class to help assertions and error processing when evaluating an expression. |
EvaluationContext.java | Class | Defines the exection context in which to evaluate a given expression. |
EvaluationException.java | Class | This class is a runtime exception because it integrates better with the generated code and
it also prevents unnecessary code bloat. |
EvaluationException2.java | Class | This class is a runtime exception because it integrates better with the generated code and
it also prevents unnecessary code bloat. |
Evaluator.java | Class | Engine that evaluates a Java expression in a context of a running JVM. |
EvaluatorVisitor.java | Class | |
Expression.java | Class | Represents an pre-parsed Java expression to be later evaluated in a specific JVM context. |
Expression2.java | Class | Represents an pre-parsed Java expression to be later evaluated in a specific JVM context.
The expression can have a 1.4 or 1.5 syntax.
Uses Compiler API
1) Generate a method (like evaluate_), which takes all local variables as arguments
2) Add that method into the current source file
3) Compile the current source file, like http://www.javabeat.net/javabeat/java6/articles/java_6_0_compiler_api_4.php
4) Traverse the parsed tree and perform the evaluation - http://java.sun.com/javase/6/docs/jdk/api/javac/tree/com/sun/source/util/JavacTask.html
5) Instead of (4) it would be cool to be able to do a hot-swap. |
Identifier.java | Class | A simple bean encapsulating information needed to resolve a given name (or identifier). |
JavaParser.java | Class | |
JavaParserConstants.java | Interface | |
JavaParserTokenManager.java | Class | |
JavaParserTreeConstants.java | Interface | |
JavaParserVisitor.java | Interface | |
JDIVariable.java | Interface | A primitive variable, which provides the appropriate JDI value. |
JJTJavaParserState.java | Class | |
Node.java | Interface | |
Operators.java | Class | Helper class containing methods that evaluate various unary and binary Java operators. |
ParseException.java | Class | This exception is thrown when parse errors are encountered. |
SimpleCharStream.java | Class | An implementation of interface CharStream, where the stream is assumed to
contain only ASCII characters (without unicode processing). |
SimpleNode.java | Class | |
Token.java | Class | Describes the input token stream. |
TokenMgrError.java | Class | |
TreeEvaluator.java | Class | |