org.jboss.aop.introduction
Class InterfaceIntroduction

java.lang.Object
  extended by org.jboss.aop.introduction.InterfaceIntroduction

public class InterfaceIntroduction
extends Object

Version:
$Revision: 70842 $
Author:
Bill Burke

Nested Class Summary
static class InterfaceIntroduction.Mixin
           
 
Field Summary
protected  ArrayList<WeakReference<Advisor>> advisors
           
protected  ASTStart ast
           
protected  ClassExpression classExpr
           
protected  String constructorClass
           
protected  String constructorMethod
           
protected  String[] interfaces
           
protected  ArrayList<InterfaceIntroduction.Mixin> mixins
           
protected  String name
           
 
Constructor Summary
InterfaceIntroduction()
           
InterfaceIntroduction(String name, ASTStart ast, String[] interfaces)
           
InterfaceIntroduction(String name, ASTStart ast, String[] interfaces, String constructorClass, String constructorMethod)
           
InterfaceIntroduction(String name, String exp, String[] interfaces)
           
InterfaceIntroduction(String name, String exp, String[] interfaces, String constructorClass, String constructorMethod)
           
 
Method Summary
 void addAdvisor(Advisor advisor)
           
 void addMixin(InterfaceIntroduction.Mixin mixin)
           
 void clearAdvisors()
           
 boolean equals(Object obj)
           
 ASTStart getAst()
           
 String getClassExpr()
           
 String getConstructorClass()
           
 String getConstructorMethod()
           
 String[] getInterfaces()
           
 ArrayList<InterfaceIntroduction.Mixin> getMixins()
           
 String getName()
           
 int hashCode()
           
 boolean matches(Advisor advisor, Class<?> clazz)
           
 boolean matches(Advisor advisor, javassist.CtClass clazz)
           
 void setClassExpression(String exp)
           
 void setInterfaces(String[] interfaces)
           
 void setMixins(ArrayList<InterfaceIntroduction.Mixin> mixins)
           
 void setName(String name)
           
 void setTypeExpression(String exp)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name

advisors

protected ArrayList<WeakReference<Advisor>> advisors

interfaces

protected String[] interfaces

mixins

protected ArrayList<InterfaceIntroduction.Mixin> mixins

classExpr

protected ClassExpression classExpr

ast

protected ASTStart ast

constructorClass

protected String constructorClass

constructorMethod

protected String constructorMethod
Constructor Detail

InterfaceIntroduction

public InterfaceIntroduction()

InterfaceIntroduction

public InterfaceIntroduction(String name,
                             String exp,
                             String[] interfaces)

InterfaceIntroduction

public InterfaceIntroduction(String name,
                             String exp,
                             String[] interfaces,
                             String constructorClass,
                             String constructorMethod)

InterfaceIntroduction

public InterfaceIntroduction(String name,
                             ASTStart ast,
                             String[] interfaces)

InterfaceIntroduction

public InterfaceIntroduction(String name,
                             ASTStart ast,
                             String[] interfaces,
                             String constructorClass,
                             String constructorMethod)
Method Detail

setClassExpression

public void setClassExpression(String exp)

setTypeExpression

public void setTypeExpression(String exp)

setMixins

public void setMixins(ArrayList<InterfaceIntroduction.Mixin> mixins)

addMixin

public void addMixin(InterfaceIntroduction.Mixin mixin)

setInterfaces

public void setInterfaces(String[] interfaces)

setName

public void setName(String name)

getName

public String getName()

getInterfaces

public String[] getInterfaces()

getMixins

public ArrayList<InterfaceIntroduction.Mixin> getMixins()

getConstructorClass

public String getConstructorClass()

getConstructorMethod

public String getConstructorMethod()

addAdvisor

public void addAdvisor(Advisor advisor)

clearAdvisors

public void clearAdvisors()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getClassExpr

public String getClassExpr()

getAst

public ASTStart getAst()

matches

public boolean matches(Advisor advisor,
                       javassist.CtClass clazz)
                throws Exception
Throws:
Exception

matches

public boolean matches(Advisor advisor,
                       Class<?> clazz)


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.