Class UnlikelyArgumentCheck
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.ast.UnlikelyArgumentCheck
-
Field Summary
Modifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 reportstatic 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.
-
Field Details
-
dangerousMethod
-
typeToCheck
-
expectedType
-
typeToReport
-
-
Method Details
-
isDangerous
Check if the invocation is likely a bug.- Parameters:
currentScope
-- Returns:
- false, if the typeToCheck does not seem to related to the expectedType
-
determineCheckForNonStaticSingleArgumentMethod
public 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 -
determineCheckForStaticTwoArgumentMethod
public static UnlikelyArgumentCheck determineCheckForStaticTwoArgumentMethod(TypeBinding secondParameter, Scope scope, char[] selector, TypeBinding firstParameter, TypeBinding[] parameters, TypeBinding actualReceiverType)
-