Package org.jetbrains.mps.util
Class InstanceOfCondition
- java.lang.Object
-
- org.jetbrains.mps.util.InstanceOfCondition
-
-
Field Summary
-
Fields inherited from interface org.jetbrains.mps.util.Condition
FALSE_CONDITION, TRUE_CONDITION
-
-
Constructor Summary
Constructors Constructor Description InstanceOfCondition(SAbstractConcept concept)
InstanceOfCondition(SAbstractConcept[] concepts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
met(SNode node)
InstanceOfCondition
tolerateNulls()
Generally, condition doesn't expect null values to come tomet(org.jetbrains.mps.openapi.model.SNode)
, as it's likely a programming error, and there's little reason to hide such.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jetbrains.mps.util.Condition
asPredicate
-
-
-
-
Constructor Detail
-
InstanceOfCondition
public InstanceOfCondition(@NotNull SAbstractConcept concept)
-
InstanceOfCondition
public InstanceOfCondition(@NotNull SAbstractConcept[] concepts)
-
-
Method Detail
-
tolerateNulls
public InstanceOfCondition tolerateNulls()
Generally, condition doesn't expect null values to come tomet(org.jetbrains.mps.openapi.model.SNode)
, as it's likely a programming error, and there's little reason to hide such. * However, if input sequence might legally containnull
values, use this method to switch tolerance tonull
on - condition simply is not met in this case.- Returns:
this
for convenience
-
-