Klasse UnlikelyArgumentCheck

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.ast.UnlikelyArgumentCheck

public class UnlikelyArgumentCheck extends Object
  • Felddetails

  • Methodendetails

    • isDangerous

      public boolean isDangerous(BlockScope currentScope)
      Check if the invocation is likely a bug.
      Parameter:
      currentScope -
      Gibt zurück:
      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)