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 TypeMethodDescriptionvoid
expand()
org.codehaus.groovy.ast.expr.ClosureExpression
boolean
boolean
isConditionBlock
(org.codehaus.groovy.ast.expr.MethodCallExpression expr) boolean
boolean
isExceptionCondition
(org.codehaus.groovy.ast.expr.MethodCallExpression expr) boolean
boolean
isInteractionCall
(org.codehaus.groovy.ast.expr.MethodCallExpression expr) boolean
isMatch
(org.codehaus.groovy.ast.expr.ClosureExpression expr) boolean
isMatch
(org.codehaus.groovy.ast.stmt.Statement stat) boolean
isMethodName
(String name) boolean
boolean
isOldCall
(org.codehaus.groovy.ast.expr.MethodCallExpression expr) boolean
isOneOfMethodNames
(Collection<String> names) boolean
boolean
isTestDouble
(org.codehaus.groovy.ast.expr.MethodCallExpression expr) boolean
boolean
isThrownCall
(org.codehaus.groovy.ast.expr.MethodCallExpression expr) boolean
boolean
isWithCall
(org.codehaus.groovy.ast.expr.MethodCallExpression expr) static SpecialMethodCall
parse
(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:
isMethodName
in interfaceISpecialMethodCall
-
isOneOfMethodNames
- Specified by:
isOneOfMethodNames
in interfaceISpecialMethodCall
-
isExceptionCondition
public boolean isExceptionCondition()- Specified by:
isExceptionCondition
in interfaceISpecialMethodCall
-
isThrownCall
public boolean isThrownCall()- Specified by:
isThrownCall
in interfaceISpecialMethodCall
-
isOldCall
public boolean isOldCall()- Specified by:
isOldCall
in interfaceISpecialMethodCall
-
isInteractionCall
public boolean isInteractionCall()- Specified by:
isInteractionCall
in interfaceISpecialMethodCall
-
isWithCall
public boolean isWithCall()- Specified by:
isWithCall
in interfaceISpecialMethodCall
-
isConditionBlock
public boolean isConditionBlock()- Specified by:
isConditionBlock
in interfaceISpecialMethodCall
-
isTestDouble
public boolean isTestDouble()- Specified by:
isTestDouble
in interfaceISpecialMethodCall
-
isExceptionCondition
public boolean isExceptionCondition(org.codehaus.groovy.ast.expr.MethodCallExpression expr) - Specified by:
isExceptionCondition
in interfaceISpecialMethodCall
-
isThrownCall
public boolean isThrownCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) - Specified by:
isThrownCall
in interfaceISpecialMethodCall
-
isOldCall
public boolean isOldCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) - Specified by:
isOldCall
in interfaceISpecialMethodCall
-
isInteractionCall
public boolean isInteractionCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) - Specified by:
isInteractionCall
in interfaceISpecialMethodCall
-
isWithCall
public boolean isWithCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) - Specified by:
isWithCall
in 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:
isTestDouble
in interfaceISpecialMethodCall
-
isMatch
public boolean isMatch(org.codehaus.groovy.ast.stmt.Statement stat) - Specified by:
isMatch
in interfaceISpecialMethodCall
-
isMatch
public boolean isMatch(org.codehaus.groovy.ast.expr.ClosureExpression expr) - Specified by:
isMatch
in interfaceISpecialMethodCall
-
getClosureExpr
public org.codehaus.groovy.ast.expr.ClosureExpression getClosureExpr()- Specified by:
getClosureExpr
in interfaceISpecialMethodCall
-
expand
public void expand()- Specified by:
expand
in interfaceISpecialMethodCall
-
parse
public static SpecialMethodCall parse(org.codehaus.groovy.ast.expr.MethodCallExpression methodCallExpr, org.codehaus.groovy.ast.expr.BinaryExpression binaryExpr) -
toString
-