Class AbstractArtifactScopedTypeResolver
- java.lang.Object
-
- com.buschmais.jqassistant.plugin.java.api.scanner.AbstractTypeResolver
-
- com.buschmais.jqassistant.plugin.java.api.scanner.AbstractArtifactScopedTypeResolver
-
- All Implemented Interfaces:
TypeResolver
- Direct Known Subclasses:
ArtifactScopedTypeResolver
public abstract class AbstractArtifactScopedTypeResolver extends AbstractTypeResolver
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractArtifactScopedTypeResolver(JavaArtifactFileDescriptor artifact)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddContainedType(java.lang.String fqn, TypeDescriptor typeDescriptor)Mark a type descriptor as contained by the current scope.protected voidaddRequiredType(java.lang.String fqn, TypeDescriptor typeDescriptor)Mark a type descriptor as required by the current scope.protected TypeDescriptorfindInArtifact(java.lang.String fullQualifiedName, com.buschmais.jqassistant.core.scanner.api.ScannerContext context)Find a type descriptor in the current scope (e.g. the containing artifact).protected TypeDescriptorfindInDependencies(java.lang.String fullQualifiedName, com.buschmais.jqassistant.core.scanner.api.ScannerContext context)Find a type descriptor outside the current scope (e.g. the known dependencies).protected JavaArtifactFileDescriptorgetArtifact()protected <T extends TypeDescriptor>
voidremoveRequiredType(java.lang.String fqn, T typeDescriptor)Mark a type descriptor as no longer required by the current scope.-
Methods inherited from class com.buschmais.jqassistant.plugin.java.api.scanner.AbstractTypeResolver
create, getContainedFileName, resolve
-
-
-
-
Constructor Detail
-
AbstractArtifactScopedTypeResolver
protected AbstractArtifactScopedTypeResolver(JavaArtifactFileDescriptor artifact)
-
-
Method Detail
-
getArtifact
protected JavaArtifactFileDescriptor getArtifact()
-
findInArtifact
protected TypeDescriptor findInArtifact(java.lang.String fullQualifiedName, com.buschmais.jqassistant.core.scanner.api.ScannerContext context)
Description copied from class:AbstractTypeResolverFind a type descriptor in the current scope (e.g. the containing artifact).- Specified by:
findInArtifactin classAbstractTypeResolver- Parameters:
fullQualifiedName- The name.context- The scanner context.- Returns:
- The type descriptor.
-
findInDependencies
protected TypeDescriptor findInDependencies(java.lang.String fullQualifiedName, com.buschmais.jqassistant.core.scanner.api.ScannerContext context)
Description copied from class:AbstractTypeResolverFind a type descriptor outside the current scope (e.g. the known dependencies).- Specified by:
findInDependenciesin classAbstractTypeResolver- Parameters:
fullQualifiedName- The name.context- The scanner context.- Returns:
- The type descriptor.
-
addContainedType
protected void addContainedType(java.lang.String fqn, TypeDescriptor typeDescriptor)Description copied from class:AbstractTypeResolverMark a type descriptor as contained by the current scope.- Specified by:
addContainedTypein classAbstractTypeResolver- Parameters:
fqn- The name.typeDescriptor- The descriptor.
-
addRequiredType
protected void addRequiredType(java.lang.String fqn, TypeDescriptor typeDescriptor)Description copied from class:AbstractTypeResolverMark a type descriptor as required by the current scope.- Specified by:
addRequiredTypein classAbstractTypeResolver- Parameters:
fqn- The name.typeDescriptor- The descriptor.
-
removeRequiredType
protected <T extends TypeDescriptor> void removeRequiredType(java.lang.String fqn, T typeDescriptor)
Description copied from class:AbstractTypeResolverMark a type descriptor as no longer required by the current scope.- Specified by:
removeRequiredTypein classAbstractTypeResolver- Parameters:
fqn- The name.typeDescriptor- The descriptor.
-
-