Klasse Checker

Alle implementierten Schnittstellen:
PartialOrder.PartialComparable, IHasPosition

public class Checker extends ShadowMunger
Representation of a shadow munger for a declare error or warning declaration.
Autor:
Andy Clement
  • Konstruktordetails

    • Checker

      public Checker(DeclareErrorOrWarning deow)
      Create a Checker for a declare error or declare warning.
      Parameter:
      deow - the declare error or declare warning for which to create the checker munger
  • Methodendetails

    • isError

      public boolean isError()
    • getMessage

      public String getMessage(Shadow shadow)
    • specializeOn

      public void specializeOn(Shadow shadow)
      Angegeben von:
      specializeOn in Klasse ShadowMunger
    • implementOn

      public boolean implementOn(Shadow shadow)
      Beschreibung aus Klasse kopiert: ShadowMunger
      Implement this munger at the specified shadow, returning a boolean to indicate success.
      Angegeben von:
      implementOn in Klasse ShadowMunger
      Parameter:
      shadow - the shadow where this munger should be applied
      Gibt zurück:
      true if the implement was successful
    • match

      public boolean match(Shadow shadow, World world)
      Determine if the Checker matches at a shadow. If it does then we can immediately report the message. Currently, there can never be a non-statically determinable match.
      Setzt außer Kraft:
      match in Klasse ShadowMunger
      Parameter:
      shadow - the shadow which to match against
      world - the world through which to access message handlers
    • compareTo

      public int compareTo(Object other)
      Gibt zurück:
      • +1 if this is greater than other
      • -1 if this is less than other
      • 0 if this is not comparable to other
      Note: returning 0 from this method doesn't mean the same thing as returning 0 from java.util.Comparable.compareTo()
    • mustCheckExceptions

      public boolean mustCheckExceptions()
      Beschreibung aus Klasse kopiert: ShadowMunger
      Does the munger have to check that its exception are accepted by the shadow ? It is not the case for annotation style around advice, for example: that can throw Throwable, even if the advised method does not throw any exceptions.
      Angegeben von:
      mustCheckExceptions in Klasse ShadowMunger
      Gibt zurück:
      true if munger has to check that its exceptions can be thrown based on the shadow
    • getThrownExceptions

      public Collection<ResolvedType> getThrownExceptions()
      Angegeben von:
      getThrownExceptions in Klasse ShadowMunger
      Gibt zurück:
      a Collection of ResolvedTypes for all checked exceptions that might be thrown by this munger
    • equals

      public boolean equals(Object other)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • parameterizeWith

      public ShadowMunger parameterizeWith(ResolvedType declaringType, Map<String,UnresolvedType> typeVariableMap)
      Parameterize the Checker by parameterizing the pointcut
      Angegeben von:
      parameterizeWith in Klasse ShadowMunger
    • concretize

      public ShadowMunger concretize(ResolvedType theAspect, World world, PerClause clause)
      Concretize this Checker by concretizing the pointcut
      Angegeben von:
      concretize in Klasse ShadowMunger
    • getConcreteAspect

      public ResolvedType getConcreteAspect()
      Angegeben von:
      getConcreteAspect in Klasse ShadowMunger