Package jminusminus
Class ClassContext
java.lang.Object
jminusminus.Context
jminusminus.ClassContext
Represents the context (scope, environment, symbol table) for a type, for example a class, in
j--. It also keeps track of its surrounding context(s) and the type whose context it represents.
-
Field Summary
Fields inherited from class jminusminus.Context
classContext, compilationUnitContext, entries, surroundingContext
-
Constructor Summary
ConstructorDescriptionClassContext
(JAST definition, Context surrounding) Constructs a class context. -
Method Summary
Modifier and TypeMethodDescriptionReturns the AST node of the type defined by this class.void
toJSON
(JSONElement json) Adds information pertaining to this context to the given JSON element.Methods inherited from class jminusminus.Context
addEntry, addType, classContext, compilationUnitContext, definingType, lookup, lookupType, methodContext, names, surroundingContext
-
Constructor Details
-
ClassContext
Constructs a class context.- Parameters:
definition
- the AST node of the type that this class represents.surrounding
- the surrounding context(s).
-
-
Method Details