org.aopalliance.aop
Interface Introduction

All Superinterfaces:
AspectElement

public interface Introduction
extends AspectElement

An advice is the definition of an aspect element which is added to the base program to extend it. Is it part of an aspect implementation.

An advice can be:


Field Summary
static int FIELD
          Field introduction type.
static int INTERFACE
          Interface introduction type.
static int METHOD
          Method introduction type.
static int MIXIN
          Mixin introduction type.
static int SUPERCLASS
          Superclass introduction type.
 
Method Summary
 ProgramUnit getElement()
          Gets the introduced element.
 int getType()
          Gets the introduction type.
 
Methods inherited from interface org.aopalliance.aop.AspectElement
getPointcut
 

Field Detail

FIELD

public static final int FIELD
Field introduction type.

See Also:
Constant Field Values

METHOD

public static final int METHOD
Method introduction type.

See Also:
Constant Field Values

INTERFACE

public static final int INTERFACE
Interface introduction type.

See Also:
Constant Field Values

SUPERCLASS

public static final int SUPERCLASS
Superclass introduction type.

See Also:
Constant Field Values

MIXIN

public static final int MIXIN
Mixin introduction type.

See Also:
Constant Field Values
Method Detail

getType

public int getType()
Gets the introduction type.

Returns:
FIELD | METHOD | INTERFACE | SUPERCLASS | MIXIN

getElement

public ProgramUnit getElement()
Gets the introduced element.

The introduced element is a program element (a field, a method, an interface, ...)

See Also:
getType()