Class JavaRootContext
java.lang.Object
io.github.mmm.code.base.BasePathElementAccess
io.github.mmm.code.base.node.BaseNodeItemContainerAccess
io.github.mmm.code.base.AbstractBaseProvider
io.github.mmm.code.base.AbstractBaseContext
io.github.mmm.code.base.AbstractBaseContextWithCache
io.github.mmm.code.impl.java.JavaContext
io.github.mmm.code.impl.java.JavaRootContext
- 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, io.github.mmm.code.base.BaseContext, io.github.mmm.code.base.BaseProvider, io.github.mmm.code.base.loader.BaseLoader, AutoCloseable
Implementation of
JavaContext for the root context.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Nested Class Summary
Nested classes/interfaces inherited from class JavaContext
JavaContext.JavaClassLoader -
Constructor Summary
ConstructorsConstructorDescriptionJavaRootContext(io.github.mmm.code.base.source.BaseSourceImpl source) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaRootContextget()io.github.mmm.code.base.type.BaseTypegetBooleanType(boolean primitive) io.github.mmm.code.api.language.CodeLanguageprotected io.github.mmm.code.base.loader.BaseLoaderio.github.mmm.code.base.type.BaseTypegetNonPrimitiveType(io.github.mmm.code.base.type.BaseType javaType) getQualifiedNameForStandardType(String simpleName, boolean omitStandardPackages) io.github.mmm.code.base.type.BaseTypeio.github.mmm.code.base.type.BaseTypeio.github.mmm.code.base.type.BaseTypeio.github.mmm.code.base.type.BaseTypeWildcardio.github.mmm.code.base.type.BaseTypeMethods inherited from class JavaContext
getType, getTypeFromCacheMethods inherited from class io.github.mmm.code.base.AbstractBaseContextWithCache
close, createCache, getOrCreateSource, getOrCreateSource, getOrCreateSource, getOrCreateType, getSource, getType, getType, getType, isPreventRegisterSourceMethods inherited from class io.github.mmm.code.base.AbstractBaseContext
createChildContext, getContext, getSourceMethods 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 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
-
JavaRootContext
public JavaRootContext(io.github.mmm.code.base.source.BaseSourceImpl source) The constructor.- Parameters:
source- the toplevelsource.
-
-
Method Details
-
getParent
- Specified by:
getParentin interfaceio.github.mmm.code.base.BaseContext- Specified by:
getParentin interfaceio.github.mmm.code.api.CodeContext- Specified by:
getParentin interfaceio.github.mmm.code.api.node.CodeNode- Specified by:
getParentin classio.github.mmm.code.base.AbstractBaseContext
-
getRootContext
- Specified by:
getRootContextin interfaceio.github.mmm.code.base.BaseContext- Specified by:
getRootContextin classJavaContext- Returns:
- the root
contextresponsible for the fundamental code (from JDK).
-
getLoader
protected io.github.mmm.code.base.loader.BaseLoader getLoader()- Specified by:
getLoaderin classio.github.mmm.code.base.AbstractBaseContextWithCache
-
getClassLoader
- Specified by:
getClassLoaderin classJavaContext- Returns:
- the
ClassLoaderused by this context to load byte-code.
-
getLanguage
public io.github.mmm.code.api.language.CodeLanguage getLanguage()- Specified by:
getLanguagein interfaceio.github.mmm.code.api.CodeContext- Overrides:
getLanguagein classio.github.mmm.code.base.AbstractBaseContext
-
getRootType
public io.github.mmm.code.base.type.BaseType getRootType()- Specified by:
getRootTypein interfaceio.github.mmm.code.base.BaseContext- Specified by:
getRootTypein interfaceio.github.mmm.code.api.CodeContext- Overrides:
getRootTypein classio.github.mmm.code.base.AbstractBaseContext
-
getRootEnumerationType
public io.github.mmm.code.base.type.BaseType getRootEnumerationType()- Specified by:
getRootEnumerationTypein interfaceio.github.mmm.code.base.BaseContext- Specified by:
getRootEnumerationTypein interfaceio.github.mmm.code.api.CodeContext- Overrides:
getRootEnumerationTypein classio.github.mmm.code.base.AbstractBaseContext
-
getRootExceptionType
public io.github.mmm.code.base.type.BaseType getRootExceptionType()- Specified by:
getRootExceptionTypein interfaceio.github.mmm.code.base.BaseContext- Specified by:
getRootExceptionTypein interfaceio.github.mmm.code.api.CodeContext- Overrides:
getRootExceptionTypein classio.github.mmm.code.base.AbstractBaseContext
-
getVoidType
public io.github.mmm.code.base.type.BaseType getVoidType()- Specified by:
getVoidTypein interfaceio.github.mmm.code.base.BaseContext- Specified by:
getVoidTypein interfaceio.github.mmm.code.api.CodeContext- Overrides:
getVoidTypein classio.github.mmm.code.base.AbstractBaseContext
-
getBooleanType
public io.github.mmm.code.base.type.BaseType getBooleanType(boolean primitive) - Specified by:
getBooleanTypein interfaceio.github.mmm.code.base.BaseContext- Specified by:
getBooleanTypein interfaceio.github.mmm.code.api.CodeContext- Overrides:
getBooleanTypein classio.github.mmm.code.base.AbstractBaseContext
-
getUnboundedWildcard
public io.github.mmm.code.base.type.BaseTypeWildcard getUnboundedWildcard()- Specified by:
getUnboundedWildcardin interfaceio.github.mmm.code.base.BaseContext- Specified by:
getUnboundedWildcardin interfaceio.github.mmm.code.api.CodeContext- Overrides:
getUnboundedWildcardin classio.github.mmm.code.base.AbstractBaseContext
-
getNonPrimitiveType
public io.github.mmm.code.base.type.BaseType getNonPrimitiveType(io.github.mmm.code.base.type.BaseType javaType) - Specified by:
getNonPrimitiveTypein interfaceio.github.mmm.code.base.BaseContext- Overrides:
getNonPrimitiveTypein classio.github.mmm.code.base.AbstractBaseContext
-
getQualifiedNameForStandardType
-
getFactory
- Specified by:
getFactoryin interfaceio.github.mmm.code.base.BaseContext- Specified by:
getFactoryin interfaceio.github.mmm.code.api.CodeContext- Overrides:
getFactoryin classio.github.mmm.code.base.AbstractBaseContext
-
get
- Returns:
- the default instance of this class.
-