Package org.spockframework.runtime.model
Class ExpressionInfo
java.lang.Object
org.spockframework.runtime.model.ExpressionInfo
- All Implemented Interfaces:
Iterable<ExpressionInfo>
- Author:
- Peter Niederwieser
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExpressionInfo(TextRegion region, TextPosition anchor, String operation, List<ExpressionInfo> children) ExpressionInfo(TextRegion region, TextPosition anchor, String operation, ExpressionInfo... children) -
Method Summary
Modifier and TypeMethodDescriptiongetText()getValue()inCustomOrder(boolean skipIrrelevant, Comparator<ExpressionInfo> comparator) inPostfixOrder(boolean skipIrrelevant) inPrefixOrder(boolean skipIrrelevant) booleanbooleanisEqualityComparison(Class<?>... types) booleaniterator()setRelevant(boolean relevant) voidsetRenderedValue(String renderedValue) voidvoidshiftVertically(int numLines) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
TEXT_NOT_AVAILABLE
-
VALUE_NOT_AVAILABLE
Indicates that an expression's value is not available, either because the expression has no value (e.g. def foo = 42), or because it wasn't evaluated (due to shortcut evaluation of boolean expressions).
-
-
Constructor Details
-
ExpressionInfo
public ExpressionInfo(TextRegion region, TextPosition anchor, String operation, List<ExpressionInfo> children) -
ExpressionInfo
public ExpressionInfo(TextRegion region, TextPosition anchor, String operation, ExpressionInfo... children)
-
-
Method Details
-
getRegion
-
getAnchor
-
getOperation
-
getChildren
-
getText
-
setText
-
getValue
-
setValue
-
getRenderedValue
-
setRenderedValue
-
getEffectiveRenderedValue
-
isRelevant
public boolean isRelevant() -
setRelevant
-
shiftVertically
public void shiftVertically(int numLines) -
iterator
- Specified by:
iteratorin interfaceIterable<ExpressionInfo>
-
inPrefixOrder
-
inPostfixOrder
-
inCustomOrder
public Iterable<ExpressionInfo> inCustomOrder(boolean skipIrrelevant, Comparator<ExpressionInfo> comparator) -
isEqualityComparison
public boolean isEqualityComparison() -
isEqualityComparison
-