Class TypeParameterNoCyclicInheritance
java.lang.Object
de.monticore.types.typeparameters.cocos.TypeParameterNoCyclicInheritance
- All Implemented Interfaces:
TypeParametersASTTypeParameterCoCo,TypeParametersVisitor2,de.monticore.visitor.IVisitor
public class TypeParameterNoCyclicInheritance
extends Object
implements TypeParametersASTTypeParameterCoCo
Finds instances of circular inheritance,
e.g.,
<T extends U, U extends Person & T>-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck(ASTTypeParameter node) protected booleancheckForCircularInheritance(List<SymTypeExpression> currentInheritanceList, ASTTypeParameter node) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.monticore.visitor.IVisitor
endVisit, endVisit, endVisit, endVisit, visit, visit, visit, visitMethods inherited from interface de.monticore.types.typeparameters._cocos.TypeParametersASTTypeParameterCoCo
visit
-
Constructor Details
-
TypeParameterNoCyclicInheritance
public TypeParameterNoCyclicInheritance()
-
-
Method Details
-
check
- Specified by:
checkin interfaceTypeParametersASTTypeParameterCoCo
-
checkForCircularInheritance
protected boolean checkForCircularInheritance(List<SymTypeExpression> currentInheritanceList, ASTTypeParameter node)
-