Package io.github.mmm.code.impl.java
Class JavaContext
- All Implemented Interfaces:
io.github.mmm.code.api.CodeContext,io.github.mmm.code.api.CodeLoader,io.github.mmm.code.api.CodeProvider,io.github.mmm.code.api.CodeWithContext,io.github.mmm.code.api.node.CodeNode,BaseContext,BaseProvider,BaseLoader,AutoCloseable
- Direct Known Subclasses:
JavaExtendedContext,JavaRootContext
Implementation of
CodeContext for Java.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classImplementation ofBaseLoaderto load classes from byte-code. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJavaContext(BaseSourceImpl source) The constructor.JavaContext(BaseSourceImpl source, BaseSourceProvider sourceProvider) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract ClassLoaderabstract JavaRootContextprotected BaseTypegetTypeFromCache(String qualifiedName) Methods inherited from class io.github.mmm.code.base.AbstractBaseContextWithCache
close, createCache, getLoader, getOrCreateSource, getOrCreateSource, getOrCreateSource, getOrCreateType, getSource, getType, getType, getType, isPreventRegisterSourceMethods inherited from class io.github.mmm.code.base.AbstractBaseContext
createChildContext, getBooleanType, getContext, getFactory, getLanguage, getNonPrimitiveType, getParent, getQualifiedNameForStandardType, getRootEnumerationType, getRootExceptionType, getRootType, getSource, getUnboundedWildcard, getVoidTypeMethods inherited from class io.github.mmm.code.base.AbstractBaseProvider
getRequiredTypeMethods inherited from class io.github.mmm.code.base.node.BaseNodeItemContainerAccess
addContainerItemMethods inherited from class io.github.mmm.code.base.BasePathElementAccess
addPathElementInternal, getPackageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.mmm.code.base.BaseProvider
getRequiredTypeMethods inherited from interface io.github.mmm.code.api.CodeContext
getQualifiedName, getQualifiedNameMethods inherited from interface io.github.mmm.code.api.CodeProvider
parseName
-
Constructor Details
-
JavaContext
The constructor.- Parameters:
source- the top-levelsource.
-
JavaContext
The constructor.- Parameters:
source- the top-levelsource.sourceProvider- theBaseSourceProvider.
-
-
Method Details
-
getRootContext
- Returns:
- the root
contextresponsible for the fundamental code (from JDK).
-
getTypeFromCache
- Overrides:
getTypeFromCachein classAbstractBaseContextWithCache
-
getType
public BaseGenericType getType(Type type, io.github.mmm.code.api.element.CodeElementWithDeclaringType declaringElement) -
getClassLoader
- Returns:
- the
ClassLoaderused by this context to load byte-code.
-