public class NoSpecialMethodCall extends java.lang.Object implements ISpecialMethodCall
Modifier and Type | Field and Description |
---|---|
static ISpecialMethodCall |
INSTANCE |
Constructor and Description |
---|
NoSpecialMethodCall() |
Modifier and Type | Method and Description |
---|---|
void |
expand() |
org.codehaus.groovy.ast.expr.ClosureExpression |
getClosureExpr() |
boolean |
isConditionBlock() |
boolean |
isExceptionCondition() |
boolean |
isExceptionCondition(org.codehaus.groovy.ast.expr.MethodCallExpression expr) |
boolean |
isInteractionCall() |
boolean |
isInteractionCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) |
boolean |
isMatch(org.codehaus.groovy.ast.expr.ClosureExpression closureExpr) |
boolean |
isMatch(org.codehaus.groovy.ast.stmt.Statement stat) |
boolean |
isMethodName(java.lang.String name) |
boolean |
isOldCall() |
boolean |
isOldCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) |
boolean |
isOneOfMethodNames(java.util.Collection<java.lang.String> names) |
boolean |
isTestDouble() |
boolean |
isTestDouble(org.codehaus.groovy.ast.expr.MethodCallExpression expr) |
boolean |
isThrownCall() |
boolean |
isThrownCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) |
boolean |
isWithCall() |
boolean |
isWithCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) |
public static final ISpecialMethodCall INSTANCE
public boolean isMethodName(java.lang.String name)
isMethodName
in interface ISpecialMethodCall
public boolean isOneOfMethodNames(java.util.Collection<java.lang.String> names)
isOneOfMethodNames
in interface ISpecialMethodCall
public boolean isExceptionCondition()
isExceptionCondition
in interface ISpecialMethodCall
public boolean isThrownCall()
isThrownCall
in interface ISpecialMethodCall
public boolean isOldCall()
isOldCall
in interface ISpecialMethodCall
public boolean isInteractionCall()
isInteractionCall
in interface ISpecialMethodCall
public boolean isWithCall()
isWithCall
in interface ISpecialMethodCall
public boolean isConditionBlock()
isConditionBlock
in interface ISpecialMethodCall
public boolean isTestDouble()
isTestDouble
in interface ISpecialMethodCall
public boolean isExceptionCondition(org.codehaus.groovy.ast.expr.MethodCallExpression expr)
isExceptionCondition
in interface ISpecialMethodCall
public boolean isThrownCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr)
isThrownCall
in interface ISpecialMethodCall
public boolean isOldCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr)
isOldCall
in interface ISpecialMethodCall
public boolean isInteractionCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr)
isInteractionCall
in interface ISpecialMethodCall
public boolean isWithCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr)
isWithCall
in interface ISpecialMethodCall
public boolean isTestDouble(org.codehaus.groovy.ast.expr.MethodCallExpression expr)
isTestDouble
in interface ISpecialMethodCall
public boolean isMatch(org.codehaus.groovy.ast.stmt.Statement stat)
isMatch
in interface ISpecialMethodCall
public boolean isMatch(org.codehaus.groovy.ast.expr.ClosureExpression closureExpr)
isMatch
in interface ISpecialMethodCall
public org.codehaus.groovy.ast.expr.ClosureExpression getClosureExpr()
getClosureExpr
in interface ISpecialMethodCall
public void expand()
expand
in interface ISpecialMethodCall
Copyright © 2017. All rights reserved