public class UnlikelyArgumentCheck
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
TypeConstants.DangerousMethod |
dangerousMethod |
TypeBinding |
expectedType |
TypeBinding |
typeToCheck |
TypeBinding |
typeToReport |
| Modifier and Type | Method and Description |
|---|---|
static UnlikelyArgumentCheck |
determineCheckForNonStaticSingleArgumentMethod(TypeBinding argumentType,
Scope scope,
char[] selector,
TypeBinding actualReceiverType,
TypeBinding[] parameters)
When targeting a well-known dangerous method, returns an UnlikelyArgumentCheck object that contains the types to
check against each other and to report
|
static UnlikelyArgumentCheck |
determineCheckForStaticTwoArgumentMethod(TypeBinding secondParameter,
Scope scope,
char[] selector,
TypeBinding firstParameter,
TypeBinding[] parameters,
TypeBinding actualReceiverType) |
boolean |
isDangerous(BlockScope currentScope)
Check if the invocation is likely a bug.
|
public final TypeConstants.DangerousMethod dangerousMethod
public final TypeBinding typeToCheck
public final TypeBinding expectedType
public final TypeBinding typeToReport
public boolean isDangerous(BlockScope currentScope)
currentScope - public static UnlikelyArgumentCheck determineCheckForNonStaticSingleArgumentMethod(TypeBinding argumentType, Scope scope, char[] selector, TypeBinding actualReceiverType, TypeBinding[] parameters)
public static UnlikelyArgumentCheck determineCheckForStaticTwoArgumentMethod(TypeBinding secondParameter, Scope scope, char[] selector, TypeBinding firstParameter, TypeBinding[] parameters, TypeBinding actualReceiverType)