public class SpecialMethodCall extends java.lang.Object implements ISpecialMethodCall
Constructor and Description |
---|
SpecialMethodCall(java.lang.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) |
Modifier and Type | Method and Description |
---|---|
void |
expand() |
org.codehaus.groovy.ast.expr.ClosureExpression |
getClosureExpr() |
boolean |
isConditionBlock() |
boolean |
isConditionBlock(org.codehaus.groovy.ast.expr.MethodCallExpression expr) |
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 expr) |
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) |
static SpecialMethodCall |
parse(org.codehaus.groovy.ast.expr.MethodCallExpression methodCallExpr,
org.codehaus.groovy.ast.expr.BinaryExpression binaryExpr) |
java.lang.String |
toString() |
public SpecialMethodCall(java.lang.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)
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 isConditionBlock(org.codehaus.groovy.ast.expr.MethodCallExpression expr)
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 expr)
isMatch
in interface ISpecialMethodCall
public org.codehaus.groovy.ast.expr.ClosureExpression getClosureExpr()
getClosureExpr
in interface ISpecialMethodCall
public void expand()
expand
in interface ISpecialMethodCall
public static SpecialMethodCall parse(org.codehaus.groovy.ast.expr.MethodCallExpression methodCallExpr, org.codehaus.groovy.ast.expr.BinaryExpression binaryExpr)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2013. All rights reserved