Klasse CodeSnippetEnvironment
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.eval.CodeSnippetEnvironment
- Alle implementierten Schnittstellen:
INameEnvironment
,EvaluationConstants
An environment that wraps the client's name environment.
This wrapper always considers the wrapped environment then if the name is
not found, it search in the code snippet support. This includes the super class
org.eclipse.jdt.internal.eval.target.CodeSnippet as well as the global variable classes.
-
Feldübersicht
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.eval.EvaluationConstants
CODE_SNIPPET_CLASS_NAME_PREFIX, CODE_SNIPPET_NAME, DELEGATE_THIS, GLOBAL_VARS_CLASS_NAME_PREFIX, LOCAL_VAR_PREFIX, PACKAGE_NAME, RESULT_TYPE_FIELD, RESULT_VALUE_FIELD, ROOT_CLASS_NAME, ROOT_COMPOUND_NAME, ROOT_FULL_CLASS_NAME, RUN_METHOD, SETRESULT_ARGUMENTS, SETRESULT_SELECTOR
-
Konstruktorübersicht
KonstruktorBeschreibungCodeSnippetEnvironment
(INameEnvironment env, EvaluationContext context) Creates a new wrapper for the given environment. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
cleanup()
This method cleans the environment.findType
(char[][] compoundTypeName) Find a type with the given compound name.findType
(char[] typeName, char[][] packageName) Find a type namedin the package . boolean
isPackage
(char[][] parentPackageName, char[] packageName) Answer whether packageName is the name of a known subpackage inside the package parentPackageName.
-
Konstruktordetails
-
CodeSnippetEnvironment
Creates a new wrapper for the given environment.
-
-
Methodendetails
-
findType
Beschreibung aus Schnittstelle kopiert:INameEnvironment
Find a type with the given compound name. Answer the binary form of the type if it is known to be consistent. Otherwise, answer the compilation unit which defines the type or null if the type does not exist. Types in the default package are specified as {{typeName}}. It is unknown whether the package containing the type actually exists. NOTE: This method can be used to find a member type using its internal name A$B, but the source file for A is answered if the binary file is inconsistent.- Angegeben von:
findType
in SchnittstelleINameEnvironment
- Siehe auch:
-
findType
Beschreibung aus Schnittstelle kopiert:INameEnvironment
Find a type namedin the package . Answer the binary form of the type if it is known to be consistent. Otherwise, answer the compilation unit which defines the type or null if the type does not exist. The default package is indicated by char[0][]. It is known that the package containing the type exists. NOTE: This method can be used to find a member type using its internal name A$B, but the source file for A is answered if the binary file is inconsistent. - Angegeben von:
findType
in SchnittstelleINameEnvironment
- Siehe auch:
-
isPackage
public boolean isPackage(char[][] parentPackageName, char[] packageName) Beschreibung aus Schnittstelle kopiert:INameEnvironment
Answer whether packageName is the name of a known subpackage inside the package parentPackageName. A top level package is found relative to null. The default package is always assumed to exist. For example: isPackage({{java}, {awt}}, {event}); isPackage(null, {java});- Angegeben von:
isPackage
in SchnittstelleINameEnvironment
- Siehe auch:
-
cleanup
public void cleanup()Beschreibung aus Schnittstelle kopiert:INameEnvironment
This method cleans the environment. It is responsible for releasing the memory and freeing resources. Passed that point, the name environment is no longer usable. A name environment can have a long life cycle, therefore it is the responsibility of the code which created it to decide when it is a good time to clean it up.- Angegeben von:
cleanup
in SchnittstelleINameEnvironment
-