Package de.monticore.types3.util
Class SymTypePredicateVisitor
java.lang.Object
de.monticore.types3.util.SymTypePredicateVisitor
- All Implemented Interfaces:
ISymTypeVisitor,Predicate<SymTypeExpression>
public abstract class SymTypePredicateVisitor
extends Object
implements ISymTypeVisitor, Predicate<SymTypeExpression>
a visitor that is a predicate over SymTypeExpressions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidsets the default valueprotected voidsetResult(boolean result) booleantest(SymTypeExpression symType) uses this visitor with the provided symType and returns the result.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
result
protected boolean result
-
-
Constructor Details
-
SymTypePredicateVisitor
public SymTypePredicateVisitor()
-
-
Method Details
-
setResult
protected void setResult(boolean result) -
setDefaultValue
protected abstract void setDefaultValue()sets the default value -
test
uses this visitor with the provided symType and returns the result. it is reset during the process.- Specified by:
testin interfacePredicate<SymTypeExpression>
-