Class AbstractBaseContext
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
- 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:
AbstractBaseContextWithCache, BaseContextChild
Base implementation of
BaseContext.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getBooleanType(boolean primitive) io.github.mmm.code.api.language.CodeLanguagegetNonPrimitiveType(BaseType javaType) abstract AbstractBaseContextgetQualifiedNameForStandardType(String simpleName, boolean omitStandardPackages) protected BaseTypegetTypeFromCache(String qualifiedName) Methods inherited from class AbstractBaseProvider
getRequiredType, getTypeMethods inherited from class BaseNodeItemContainerAccess
addContainerItemMethods inherited from class BasePathElementAccess
addPathElementInternal, getPackageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseContext
getOrCreateType, getRootContext, getTypeMethods inherited from interface BaseLoader
getType, getTypeMethods inherited from interface BaseProvider
getRequiredType, getTypeMethods inherited from interface io.github.mmm.code.api.CodeContext
getQualifiedName, getQualifiedNameMethods inherited from interface io.github.mmm.code.api.CodeProvider
parseName
-
Constructor Details
-
AbstractBaseContext
-
-
Method Details
-
getParent
- Specified by:
getParentin interfaceBaseContext- Specified by:
getParentin interfaceio.github.mmm.code.api.CodeContext- Specified by:
getParentin interfaceio.github.mmm.code.api.node.CodeNode
-
getContext
- Specified by:
getContextin interfaceBaseLoader- Specified by:
getContextin interfaceBaseProvider- Specified by:
getContextin interfaceio.github.mmm.code.api.CodeWithContext
-
getSource
- Specified by:
getSourcein interfaceBaseLoader- Specified by:
getSourcein interfaceBaseProvider- Specified by:
getSourcein interfaceio.github.mmm.code.api.CodeWithContext
-
getTypeFromCache
-
getSource
- Specified by:
getSourcein interfaceBaseContext- Parameters:
id- theIDof the requested source.- Returns:
- the existing
BaseSourcefor the givenIDornullif not found.
-
getLanguage
public io.github.mmm.code.api.language.CodeLanguage getLanguage()- Specified by:
getLanguagein interfaceio.github.mmm.code.api.CodeContext
-
getFactory
- Specified by:
getFactoryin interfaceBaseContext- Specified by:
getFactoryin interfaceio.github.mmm.code.api.CodeContext
-
getUnboundedWildcard
- Specified by:
getUnboundedWildcardin interfaceBaseContext- Specified by:
getUnboundedWildcardin interfaceio.github.mmm.code.api.CodeContext
-
getRootType
- Specified by:
getRootTypein interfaceBaseContext- Specified by:
getRootTypein interfaceio.github.mmm.code.api.CodeContext
-
getRootEnumerationType
- Specified by:
getRootEnumerationTypein interfaceBaseContext- Specified by:
getRootEnumerationTypein interfaceio.github.mmm.code.api.CodeContext
-
getVoidType
- Specified by:
getVoidTypein interfaceBaseContext- Specified by:
getVoidTypein interfaceio.github.mmm.code.api.CodeContext
-
getRootExceptionType
- Specified by:
getRootExceptionTypein interfaceBaseContext- Specified by:
getRootExceptionTypein interfaceio.github.mmm.code.api.CodeContext
-
getBooleanType
- Specified by:
getBooleanTypein interfaceBaseContext- Specified by:
getBooleanTypein interfaceio.github.mmm.code.api.CodeContext
-
getNonPrimitiveType
- Specified by:
getNonPrimitiveTypein interfaceBaseContext- Parameters:
javaType- theBaseTypethat might beprimitive.- Returns:
- the corresponding
non-primitive type.
-
getQualifiedNameForStandardType
-
createChildContext
- Specified by:
createChildContextin interfaceBaseContext- Specified by:
createChildContextin interfaceio.github.mmm.code.api.CodeContext
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceio.github.mmm.code.api.CodeProvider
-