|
|||||||||
| Home >> All >> fzi >> injectj >> [ weavepoint overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
fzi.injectj.weavepoint
Class AbstractWeavepoint

java.lang.Objectfzi.injectj.weavepoint.Type
fzi.injectj.weavepoint.AbstractWeavepoint
- Direct Known Subclasses:
- AccessWeavepoint, AssignmentWeavepoint, AttributeWeavepoint, ClassWeavepoint, DeclarationWeavepoint, ExceptionThrowWeavepoint, ExceptionWeavepoint, ExplicitWeavepoint, MethodWeavepoint, RootWeavepoint
- public abstract class AbstractWeavepoint
- extends Type
This is the base class for all weavepoint representations, like class, method member access or explicit weavepoints. All possible commands in these weavepoints are declared here. The default implementation for these commands does nothing but throwing a WeaveException, indicating that this command isn't allowed for the given weavepoint type. If a weavepoint type allows a specific command, the default implementation must be overridden. For example, the AbstractWeavepoint subclass representing a member access only has to override methods before(), after(), replace() and delete(), since a member access doesn't support commands like addToImports().
| Field Summary |
| Fields inherited from class fzi.injectj.weavepoint.Type |
ACCESS, ASSIGNMENT, ATTRIBUTE, BOOL, CLASS, DECLARATION, EXCEPTION, EXCEPTIONTHROW, EXPLICIT, INTEGER, LIBRARY, LIST, LIST_MASK, listSeparator, METHOD, PARAMETER, ROOT, STRING, UNKNOWN, VOID |
| Constructor Summary | |
AbstractWeavepoint()
|
|
| Method Summary | |
abstract java.lang.Object |
accept(fzi.injectj.navigation.Visitor visitor,
WeavePointDescription description,
fzi.injectj.node.StatementList statementList)
Accepts a visitor. |
void |
addClass(fzi.injectj.node.JavaSource source,
WeavePointDescription description,
boolean addInnerClass,
fzi.injectj.util.Environment environment)
Implementation of the 'add class' command. |
void |
addInterface(fzi.injectj.node.JavaSource source,
WeavePointDescription description,
fzi.injectj.util.Environment environment)
Implementation of the 'add class' command. |
void |
addToExtends(fzi.injectj.node.JavaSource source,
fzi.injectj.util.Environment environment)
Implementation of the 'add to extends' command. |
void |
addToImplements(fzi.injectj.node.JavaSource source,
fzi.injectj.util.Environment environment)
Implementation of the 'add to implements' command. |
void |
addToImports(fzi.injectj.node.JavaSource source,
fzi.injectj.util.Environment environment)
Implementation of the 'add to imports' command. |
void |
addToMembers(fzi.injectj.node.JavaSource source,
fzi.injectj.util.Environment environment)
Implementation of the 'add to members' command. |
void |
addToThrows(fzi.injectj.node.JavaSource source,
fzi.injectj.util.Environment environment)
Implementation of the 'add to throws' command. |
void |
after(fzi.injectj.node.JavaSource source,
fzi.injectj.util.Environment environment)
Implementation of the 'after' command. |
void |
before(fzi.injectj.node.JavaSource source,
fzi.injectj.util.Environment environment)
Implementation of the 'before' command. |
void |
changeModifier(fzi.injectj.node.JavaSource source,
fzi.injectj.util.Environment environment)
Implementation of the 'change modifier' command. |
void |
delete(fzi.injectj.util.Environment environment)
Implementation of the 'delete' command. |
void |
replace(fzi.injectj.node.JavaSource source,
fzi.injectj.util.Environment environment)
Implementation of the 'replace' command. |
| Methods inherited from class fzi.injectj.weavepoint.Type |
assignType, getAskIdentifier, getListSeparator, getProperty, getTypeID, getTypeName, getTypeNameForTypeID, setProperty |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
AbstractWeavepoint
public AbstractWeavepoint()
| Method Detail |
accept
public abstract java.lang.Object accept(fzi.injectj.navigation.Visitor visitor, WeavePointDescription description, fzi.injectj.node.StatementList statementList) throws WeaveException, fzi.injectj.navigation.NavigationException, MalformedAliasusageException, UninitializedTypeException
- Accepts a visitor. This is part of the GoF design pattern "Visitor". After
accepting a visitor, this method calls the appropriate visit method.
For example, the subclass representing a class weavepoint will call
visit(Class...), while a subclass representing a method weavepoint will call
visit(Method...).
before
public void before(fzi.injectj.node.JavaSource source, fzi.injectj.util.Environment environment) throws WeaveException
- Implementation of the 'before' command. This method will be called if a
'before' command was found. The default implementation does nothing but
throwing a WeaveException.
after
public void after(fzi.injectj.node.JavaSource source, fzi.injectj.util.Environment environment) throws WeaveException
- Implementation of the 'after' command. This method will be called if a
'after' command was found. The default implementation does nothing but
throwing a WeaveException.
replace
public void replace(fzi.injectj.node.JavaSource source, fzi.injectj.util.Environment environment) throws WeaveException
- Implementation of the 'replace' command. This method will be called if a
'replace' command was found. The default implementation does nothing but
throwing a WeaveException.
delete
public void delete(fzi.injectj.util.Environment environment) throws WeaveException
- Implementation of the 'delete' command. This method will be called if a
'delete' command was found. The default implementation does nothing but
throwing a WeaveException.
addToImports
public void addToImports(fzi.injectj.node.JavaSource source, fzi.injectj.util.Environment environment) throws WeaveException
- Implementation of the 'add to imports' command. This method will be called if a
'add to imports' command was found. The default implementation does nothing but
throwing a WeaveException.
addToExtends
public void addToExtends(fzi.injectj.node.JavaSource source, fzi.injectj.util.Environment environment) throws WeaveException
- Implementation of the 'add to extends' command. This method will be called if a
'add to extends' command was found. The default implementation does nothing but
throwing a WeaveException.
addToImplements
public void addToImplements(fzi.injectj.node.JavaSource source, fzi.injectj.util.Environment environment) throws WeaveException
- Implementation of the 'add to implements' command. This method will be called if a
'before' command was found. The default implementation does nothing but
throwing a WeaveException.
addToThrows
public void addToThrows(fzi.injectj.node.JavaSource source, fzi.injectj.util.Environment environment) throws WeaveException
- Implementation of the 'add to throws' command. This method will be called if a
'add to throws' command was found. The default implementation does nothing but
throwing a WeaveException.
addClass
public void addClass(fzi.injectj.node.JavaSource source, WeavePointDescription description, boolean addInnerClass, fzi.injectj.util.Environment environment) throws WeaveException
- Implementation of the 'add class' command. This method will be called if a
'add class' command was found. The default implementation does nothing but
throwing a WeaveException.
addInterface
public void addInterface(fzi.injectj.node.JavaSource source, WeavePointDescription description, fzi.injectj.util.Environment environment) throws WeaveException
- Implementation of the 'add class' command. This method will be called if a
'add class' command was found. The default implementation does nothing but
throwing a WeaveException.
addToMembers
public void addToMembers(fzi.injectj.node.JavaSource source, fzi.injectj.util.Environment environment) throws WeaveException
- Implementation of the 'add to members' command. This method will be called if a
'add to members' command was found. The default implementation does nothing but
throwing a WeaveException.
changeModifier
public void changeModifier(fzi.injectj.node.JavaSource source, fzi.injectj.util.Environment environment) throws WeaveException
- Implementation of the 'change modifier' command. This method will be called if a
'change modifier' command was found. The default implementation does nothing but
throwing a WeaveException.
|
|||||||||
| Home >> All >> fzi >> injectj >> [ weavepoint overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC