Interface BaseContext
- All Superinterfaces:
AutoCloseable, BaseLoader, BaseProvider, io.github.mmm.code.api.CodeContext, io.github.mmm.code.api.CodeLoader, io.github.mmm.code.api.node.CodeNode, io.github.mmm.code.api.CodeProvider, io.github.mmm.code.api.CodeWithContext
- All Known Implementing Classes:
AbstractBaseContext, AbstractBaseContextWithCache, BaseContextChild
Base interface for
CodeContext.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Method Summary
Modifier and TypeMethodDescriptiongetBooleanType(boolean primitive) getNonPrimitiveType(BaseType javaType) default BaseTypegetOrCreateType(String qualifiedName, boolean add) default BaseContextMethods inherited from interface BaseLoader
getType, getTypeMethods inherited from interface BaseProvider
getContext, getRequiredType, getSource, getTypeMethods inherited from interface io.github.mmm.code.api.CodeContext
getLanguage, getQualifiedName, getQualifiedName, getQualifiedNameForStandardTypeMethods inherited from interface io.github.mmm.code.api.CodeProvider
close, parseName
-
Method Details
-
getParent
BaseContext getParent()- Specified by:
getParentin interfaceio.github.mmm.code.api.CodeContext- Specified by:
getParentin interfaceio.github.mmm.code.api.node.CodeNode
-
getRootContext
- Returns:
- the root
contextresponsible for the fundamental code (from the SDK like JDK for Java).
-
getSource
- Parameters:
id- theIDof the requested source.- Returns:
- the existing
BaseSourcefor the givenIDornullif not found.
-
getRootType
BaseType getRootType()- Specified by:
getRootTypein interfaceio.github.mmm.code.api.CodeContext
-
getRootEnumerationType
BaseType getRootEnumerationType()- Specified by:
getRootEnumerationTypein interfaceio.github.mmm.code.api.CodeContext
-
getVoidType
BaseType getVoidType()- Specified by:
getVoidTypein interfaceio.github.mmm.code.api.CodeContext
-
getRootExceptionType
BaseType getRootExceptionType()- Specified by:
getRootExceptionTypein interfaceio.github.mmm.code.api.CodeContext
-
getBooleanType
- Specified by:
getBooleanTypein interfaceio.github.mmm.code.api.CodeContext
-
getUnboundedWildcard
BaseTypeWildcard getUnboundedWildcard()- Specified by:
getUnboundedWildcardin interfaceio.github.mmm.code.api.CodeContext
-
getType
BaseGenericType getType(Type type, io.github.mmm.code.api.element.CodeElementWithDeclaringType declaringElement) -
getNonPrimitiveType
- Parameters:
javaType- theBaseTypethat might beprimitive.- Returns:
- the corresponding
non-primitive type.
-
getFactory
BaseFactory getFactory()- Specified by:
getFactoryin interfaceio.github.mmm.code.api.CodeContext
-
getOrCreateType
-
createChildContext
BaseContext createChildContext()- Specified by:
createChildContextin interfaceio.github.mmm.code.api.CodeContext
-