To be able to resolve static method calls, you must call setClasses() before use.
Public Member Functions | |
Ref (QID id, bool thisRef) | |
Initializes a reference with the given id. | |
bool | isQualified () |
Return whether the reference is qualified. | |
QID | getId () |
Returns the qualified identifer of this reference. | |
bool | isThis () |
Returns whether this is a "this" reference. | |
Object | call (List args) |
Call the method this reference points to and return its result. | |
override string | ToString () |
Returns a C# representation of this reference. | |
Class | resolveClass () |
Return the stub class of the referred variable. | |
Static Public Member Functions | |
void | setClasses (Hashtable classes) |
This must be called with a dictionary of all available classes before code interpretation to allow resolution of static method calls. | |
Properties | |
Object | Value |
Get/set the value of the referred variable. | |
QID | id |
bool | thisRef |
True if this is a this.xxx reference. | |
Hashtable | classes |
string -> Class dictionary of all available classes for static method call resolution. | |
Private Member Functions | |
Variable | resolveVar () |
Returns the variable this reference points to. |
|
Initializes a reference with the given id. If thisRef == true, it becomes a reference to this.id. |
|
Call the method this reference points to and return its result. This also ensures that a MethodCallNode is created on stub method calls. |
|
Returns the qualified identifer of this reference.
|
|
Return whether the reference is qualified.
|
|
Returns whether this is a "this" reference.
|
|
Return the stub class of the referred variable. Also works for static method call references. |
|
Returns the variable this reference points to. This does not yet support static class fields! |
|
This must be called with a dictionary of all available classes before code interpretation to allow resolution of static method calls.
|
|
Returns a C# representation of this reference.
|
|
string -> Class dictionary of all available classes for static method call resolution.
|
|
|
|
True if this is a this.xxx reference.
|
|
Get/set the value of the referred variable. This also ensures that ValueInNodes and ValueOutNodes are created on stub accesses. |