Package org.spockframework.compiler
Class SpecialMethodCall
java.lang.Object
org.spockframework.compiler.SpecialMethodCall
- All Implemented Interfaces:
ISpecialMethodCall
-
Constructor Summary
ConstructorsConstructorDescriptionSpecialMethodCall(String methodName, org.codehaus.groovy.ast.expr.Expression inferredName, org.codehaus.groovy.ast.expr.Expression inferredType, org.codehaus.groovy.ast.expr.MethodCallExpression methodCallExpr, org.codehaus.groovy.ast.expr.BinaryExpression binaryExpr, org.codehaus.groovy.ast.expr.ClosureExpression closureExpr, boolean conditionBlock) -
Method Summary
Modifier and TypeMethodDescriptionvoidexpand()org.codehaus.groovy.ast.expr.ClosureExpressionbooleanbooleanisConditionBlock(org.codehaus.groovy.ast.expr.MethodCallExpression expr) booleanbooleanisExceptionCondition(org.codehaus.groovy.ast.expr.MethodCallExpression expr) booleanbooleanisInteractionCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) booleanisMatch(org.codehaus.groovy.ast.expr.ClosureExpression expr) booleanisMatch(org.codehaus.groovy.ast.stmt.Statement stat) booleanisMethodName(String name) booleanbooleanisOldCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) booleanisOneOfMethodNames(Collection<String> names) booleanbooleanisTestDouble(org.codehaus.groovy.ast.expr.MethodCallExpression expr) booleanbooleanisThrownCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) booleanbooleanisWithCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) static SpecialMethodCallparse(org.codehaus.groovy.ast.expr.MethodCallExpression methodCallExpr, org.codehaus.groovy.ast.expr.BinaryExpression binaryExpr) toString()
-
Constructor Details
-
SpecialMethodCall
public SpecialMethodCall(String methodName, org.codehaus.groovy.ast.expr.Expression inferredName, org.codehaus.groovy.ast.expr.Expression inferredType, org.codehaus.groovy.ast.expr.MethodCallExpression methodCallExpr, org.codehaus.groovy.ast.expr.BinaryExpression binaryExpr, org.codehaus.groovy.ast.expr.ClosureExpression closureExpr, boolean conditionBlock)
-
-
Method Details
-
isMethodName
- Specified by:
isMethodNamein interfaceISpecialMethodCall
-
isOneOfMethodNames
- Specified by:
isOneOfMethodNamesin interfaceISpecialMethodCall
-
isExceptionCondition
public boolean isExceptionCondition()- Specified by:
isExceptionConditionin interfaceISpecialMethodCall
-
isThrownCall
public boolean isThrownCall()- Specified by:
isThrownCallin interfaceISpecialMethodCall
-
isOldCall
public boolean isOldCall()- Specified by:
isOldCallin interfaceISpecialMethodCall
-
isInteractionCall
public boolean isInteractionCall()- Specified by:
isInteractionCallin interfaceISpecialMethodCall
-
isWithCall
public boolean isWithCall()- Specified by:
isWithCallin interfaceISpecialMethodCall
-
isConditionBlock
public boolean isConditionBlock()- Specified by:
isConditionBlockin interfaceISpecialMethodCall
-
isTestDouble
public boolean isTestDouble()- Specified by:
isTestDoublein interfaceISpecialMethodCall
-
isExceptionCondition
public boolean isExceptionCondition(org.codehaus.groovy.ast.expr.MethodCallExpression expr) - Specified by:
isExceptionConditionin interfaceISpecialMethodCall
-
isThrownCall
public boolean isThrownCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) - Specified by:
isThrownCallin interfaceISpecialMethodCall
-
isOldCall
public boolean isOldCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) - Specified by:
isOldCallin interfaceISpecialMethodCall
-
isInteractionCall
public boolean isInteractionCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) - Specified by:
isInteractionCallin interfaceISpecialMethodCall
-
isWithCall
public boolean isWithCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) - Specified by:
isWithCallin interfaceISpecialMethodCall
-
isConditionBlock
public boolean isConditionBlock(org.codehaus.groovy.ast.expr.MethodCallExpression expr) -
isTestDouble
public boolean isTestDouble(org.codehaus.groovy.ast.expr.MethodCallExpression expr) - Specified by:
isTestDoublein interfaceISpecialMethodCall
-
isMatch
public boolean isMatch(org.codehaus.groovy.ast.stmt.Statement stat) - Specified by:
isMatchin interfaceISpecialMethodCall
-
isMatch
public boolean isMatch(org.codehaus.groovy.ast.expr.ClosureExpression expr) - Specified by:
isMatchin interfaceISpecialMethodCall
-
getClosureExpr
public org.codehaus.groovy.ast.expr.ClosureExpression getClosureExpr()- Specified by:
getClosureExprin interfaceISpecialMethodCall
-
expand
public void expand()- Specified by:
expandin interfaceISpecialMethodCall
-
parse
public static SpecialMethodCall parse(org.codehaus.groovy.ast.expr.MethodCallExpression methodCallExpr, org.codehaus.groovy.ast.expr.BinaryExpression binaryExpr) -
toString
-