Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

fzi.injectj.weavepoint
Class AssignmentWeavepoint  view AssignmentWeavepoint download AssignmentWeavepoint.java

java.lang.Object
  extended byfzi.injectj.weavepoint.Type
      extended byfzi.injectj.weavepoint.AbstractWeavepoint
          extended byfzi.injectj.weavepoint.AssignmentWeavepoint

public abstract class AssignmentWeavepoint
extends AbstractWeavepoint


Field Summary
protected  java.lang.String matchIdentifier
           
 
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
AssignmentWeavepoint(java.lang.String matchIdentifier)
          Constructs a new assignment weavepoint.
 
Method Summary
 void after(fzi.injectj.node.JavaSource source, fzi.injectj.util.Environment environment)
          Implementation of the 'after' command.
 void assignType(Type newValue)
          Assigns the content of newValue to the current type content.
 void before(fzi.injectj.node.JavaSource source, fzi.injectj.util.Environment environment)
          Implementation of the 'before' command.
 void delete(fzi.injectj.util.Environment environment)
          Implementation of the 'delete' command.
abstract  java.lang.String getAssignmentText()
          Returns the source text of this assignment
 java.lang.String getMatchIdentifier()
          Returns the simple identifier of the left hand side variable set using the constructor.
 Type getProperty(fzi.injectj.node.AliasProperty property, fzi.injectj.util.Environment environment)
          Get the value of the property specified by the parameter 'property'.
 int getTypeID()
           
 void replace(fzi.injectj.node.JavaSource source, fzi.injectj.util.Environment environment)
          Implementation of the 'replace' command.
 void setProperty(fzi.injectj.node.AliasProperty property, fzi.injectj.node.AssignExpression rightValue, fzi.injectj.util.Environment environment)
          Set the property specified by 'property' to the new value 'rightValue'.
 
Methods inherited from class fzi.injectj.weavepoint.AbstractWeavepoint
accept, addClass, addInterface, addToExtends, addToImplements, addToImports, addToMembers, addToThrows, changeModifier
 
Methods inherited from class fzi.injectj.weavepoint.Type
getAskIdentifier, getListSeparator, getTypeName, getTypeNameForTypeID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matchIdentifier

protected java.lang.String matchIdentifier
Constructor Detail

AssignmentWeavepoint

public AssignmentWeavepoint(java.lang.String matchIdentifier)
Constructs a new assignment weavepoint.

Method Detail

getMatchIdentifier

public java.lang.String getMatchIdentifier()
Returns the simple identifier of the left hand side variable set using the constructor.


getTypeID

public int getTypeID()
Specified by:
getTypeID in class Type

getAssignmentText

public abstract java.lang.String getAssignmentText()
Returns the source text of this assignment


before

public void before(fzi.injectj.node.JavaSource source,
                   fzi.injectj.util.Environment environment)
            throws WeaveException
Description copied from class: AbstractWeavepoint
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.

Overrides:
before in class AbstractWeavepoint

after

public void after(fzi.injectj.node.JavaSource source,
                  fzi.injectj.util.Environment environment)
           throws WeaveException
Description copied from class: AbstractWeavepoint
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.

Overrides:
after in class AbstractWeavepoint

replace

public void replace(fzi.injectj.node.JavaSource source,
                    fzi.injectj.util.Environment environment)
             throws WeaveException
Description copied from class: AbstractWeavepoint
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.

Overrides:
replace in class AbstractWeavepoint

delete

public void delete(fzi.injectj.util.Environment environment)
            throws WeaveException
Description copied from class: AbstractWeavepoint
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.

Overrides:
delete in class AbstractWeavepoint

assignType

public void assignType(Type newValue)
                throws UninitializedTypeException
Description copied from class: Type
Assigns the content of newValue to the current type content. Currently this is only allowed for simple types.

Specified by:
assignType in class Type

getProperty

public Type getProperty(fzi.injectj.node.AliasProperty property,
                        fzi.injectj.util.Environment environment)
                 throws MalformedAliasusageException
Description copied from class: Type
Get the value of the property specified by the parameter 'property'.

Specified by:
getProperty in class Type

setProperty

public void setProperty(fzi.injectj.node.AliasProperty property,
                        fzi.injectj.node.AssignExpression rightValue,
                        fzi.injectj.util.Environment environment)
                 throws MalformedAliasusageException
Description copied from class: Type
Set the property specified by 'property' to the new value 'rightValue'. This feature is not used (and implemented) in the current version of Inject/J.

Specified by:
setProperty in class Type