Package de.monticore.types.check
Class SynthesizeCompKindFromMCSimpleGenericTypes
java.lang.Object
de.monticore.types.check.SynthesizeCompKindFromMCSimpleGenericTypes
- All Implemented Interfaces:
MCSimpleGenericTypesHandler,de.monticore.visitor.IHandler
public class SynthesizeCompKindFromMCSimpleGenericTypes
extends Object
implements MCSimpleGenericTypesHandler
A visitor (a handler indeed) that creates a
CompKindOfComponentType from an
ASTMCBasicGenericType, given that there is a matching resolvable
component type symbol.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CompKindCheckResultCommon state with other visitors, if this visitor is part of a visitor composition.protected MCSimpleGenericTypesTraverser -
Constructor Summary
ConstructorsConstructorDescriptionSynthesizeCompKindFromMCSimpleGenericTypes(@NonNull CompKindCheckResult result) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(@NonNull ASTMCBasicGenericType mcType) voidsetTraverser(@NonNull MCSimpleGenericTypesTraverser traverser) typeArgumentsToTypes(@NonNull List<ASTMCTypeArgument> typeArgs) Given that allASTMCTypeArguments intypeArgsareASTMCTypes, this method returns a list with theseASTMCTypes in the same order.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.monticore.visitor.IHandler
handle, handle, handle, handle, handle, traverse, traverse
-
Field Details
-
traverser
-
resultWrapper
Common state with other visitors, if this visitor is part of a visitor composition.
-
-
Constructor Details
-
SynthesizeCompKindFromMCSimpleGenericTypes
-
-
Method Details
-
getTraverser
- Specified by:
getTraverserin interfacede.monticore.visitor.IHandler- Specified by:
getTraverserin interfaceMCSimpleGenericTypesHandler
-
setTraverser
- Specified by:
setTraverserin interfaceMCSimpleGenericTypesHandler
-
handle
- Specified by:
handlein interfaceMCSimpleGenericTypesHandler
-
typeArgumentsToTypes
Given that allASTMCTypeArguments intypeArgsareASTMCTypes, this method returns a list with theseASTMCTypes in the same order. Else, an exception is thrown.
-