Package de.monticore.types3.util
Class SymTypePredicateVisitor
- java.lang.Object
-
- de.monticore.types3.util.SymTypePredicateVisitor
-
- All Implemented Interfaces:
ISymTypeVisitor,java.util.function.Predicate<SymTypeExpression>
public abstract class SymTypePredicateVisitor extends java.lang.Object implements ISymTypeVisitor, java.util.function.Predicate<SymTypeExpression>
a visitor that is a predicate over SymTypeExpressions
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanresult
-
Constructor Summary
Constructors Constructor Description SymTypePredicateVisitor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidsetDefaultValue()sets 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
-
-
-
-
Method Detail
-
setResult
protected void setResult(boolean result)
-
setDefaultValue
protected abstract void setDefaultValue()
sets the default value
-
test
public boolean test(SymTypeExpression symType)
uses this visitor with the provided symType and returns the result. it is reset during the process.- Specified by:
testin interfacejava.util.function.Predicate<SymTypeExpression>
-
-