|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode
org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration
org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration
org.aspectj.ajdt.internal.compiler.ast.AjMethodDeclaration
org.aspectj.ajdt.internal.compiler.ast.AdviceDeclaration
public class AdviceDeclaration
Represents before, after and around advice in an aspect. Will generate a method corresponding to the body of the advice with an attribute including additional information.
Field Summary | |
---|---|
Argument |
extraArgument
|
AdviceKind |
kind
|
PointcutDesignator |
pointcutDesignator
|
java.util.List |
proceedCalls
|
MethodBinding |
proceedMethodBinding
|
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration |
---|
returnType, typeParameters |
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration |
---|
annotations, arguments, binding, bodyEnd, bodyStart, compilationResult, declarationSourceEnd, declarationSourceStart, explicitDeclarations, ignoreFurtherInvestigation, javadoc, modifiers, modifiersSourceStart, scope, selector, statements, thrownExceptions |
Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.problem.ProblemSeverities |
---|
Abort, AbortCompilation, AbortCompilationUnit, AbortMethod, AbortType, Error, Fatal, Ignore, Optional, SecondaryError, Warning |
Constructor Summary | |
---|---|
AdviceDeclaration(CompilationResult result,
AdviceKind kind)
|
Method Summary | |
---|---|
void |
addAtAspectJAnnotations()
Add either the @Before, @After, @Around, @AfterReturning or @AfterThrowing annotation |
static Argument[] |
addTjpArguments(Argument[] arguments,
TypeDeclaration containingTypeDec)
|
void |
generateCode(ClassScope classScope,
ClassFile classFile)
Bytecode generation for a method |
protected int |
generateInfoAttributes(ClassFile classFile)
Generates my info attributes, hook for subclasses |
int |
getDeclaredParameterCount()
|
void |
postParse(TypeDeclaration typeDec)
Just before building bindings, hook for subclasses |
java.lang.StringBuffer |
printBody(int indent,
java.lang.StringBuffer output)
|
java.lang.StringBuffer |
printReturnType(int indent,
java.lang.StringBuffer output)
|
void |
resolveStatements()
|
Methods inherited from class org.aspectj.ajdt.internal.compiler.ast.AjMethodDeclaration |
---|
addAttribute, addDeclarationStartLineAttribute, generateInfoAttributes |
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration |
---|
analyseCode, isMethod, parseStatements, traverse, typeParameters |
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration |
---|
abort, bindArguments, bindThrownExceptions, compilationResult, ensureScopeSetup, finishResolveTypes, generateCode, hasErrors, isAbstract, isAnnotationMethod, isClinit, isConstructor, isDefaultConstructor, isInitializationMethod, isNative, isStatic, print, resolve, resolveJavadoc, tagAsHavingErrors |
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode |
---|
checkInvocationArguments, concreteStatement, isFieldUseDeprecated, isImplicitThis, isMethodUseDeprecated, isSuper, isThis, isTypeUseDeprecated, printAnnotations, printIndent, printModifiers, resolveAnnotations, resolveDeprecatedAnnotations, sourceEnd, sourceStart, toString, traverse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public PointcutDesignator pointcutDesignator
public Argument extraArgument
public AdviceKind kind
public MethodBinding proceedMethodBinding
public java.util.List proceedCalls
Constructor Detail |
---|
public AdviceDeclaration(CompilationResult result, AdviceKind kind)
Method Detail |
---|
protected int generateInfoAttributes(ClassFile classFile)
AbstractMethodDeclaration
generateInfoAttributes
in class AjMethodDeclaration
public void resolveStatements()
resolveStatements
in class MethodDeclaration
public int getDeclaredParameterCount()
public void generateCode(ClassScope classScope, ClassFile classFile)
AbstractMethodDeclaration
generateCode
in class AbstractMethodDeclaration
public void addAtAspectJAnnotations()
public void postParse(TypeDeclaration typeDec)
AbstractMethodDeclaration
postParse
in class AbstractMethodDeclaration
public static Argument[] addTjpArguments(Argument[] arguments, TypeDeclaration containingTypeDec)
public java.lang.StringBuffer printBody(int indent, java.lang.StringBuffer output)
printBody
in class AbstractMethodDeclaration
public java.lang.StringBuffer printReturnType(int indent, java.lang.StringBuffer output)
printReturnType
in class MethodDeclaration
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |