Dresden OCL Toolkit

tudresden.ocl.injection
Class JavaBehaviour

java.lang.Object
  extended bytudresden.ocl.injection.JavaFeature
      extended bytudresden.ocl.injection.JavaBehaviour
Direct Known Subclasses:
JavaConstructor, JavaMethod

public abstract class JavaBehaviour
extends JavaFeature

Represents a behavioral feature of a class parsed by the java parser. May be either a method or a constructor.

See Also:
Injector

Field Summary
protected  String literal
          The method header of this method, exactly as in the input stream, including all typographic extra's (line breaks, comments).
protected  ArrayList parameters
          Contains subsequently parameter types and names.
private  ArrayList throwables
          Contains all names given in the "throws" clause.
protected  List unmodifiableParameters
           
 
Fields inherited from class tudresden.ocl.injection.JavaFeature
name, type
 
Constructor Summary
JavaBehaviour(JavaClass parent, int modifiers, String type, String name)
           
 
Method Summary
 void addParameter(String paramtype, String paramname)
           
 void addThrowable(String throwable)
           
 String getLiteral()
           
 List getParameters()
           
 Iterator getThrowables()
           
abstract  String getWrappedLiteral()
           
 void printMore(PrintStream o)
           
 void setLastParameterEnd(int pos)
          Ignores this information.
 void setLastParameterStart(int pos)
          Ignores this information.
 void setLiteral(String literal)
           
 
Methods inherited from class tudresden.ocl.injection.JavaFeature
getAllowedModifiers, getFile, getModifiers, getName, getPackageName, getParent, getType, isAbstract, isStatic, print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parameters

protected final ArrayList parameters
Contains subsequently parameter types and names.


unmodifiableParameters

protected final List unmodifiableParameters

throwables

private final ArrayList throwables
Contains all names given in the "throws" clause.


literal

protected String literal
The method header of this method, exactly as in the input stream, including all typographic extra's (line breaks, comments).

Constructor Detail

JavaBehaviour

public JavaBehaviour(JavaClass parent,
                     int modifiers,
                     String type,
                     String name)
              throws InjectorParseException
Method Detail

addParameter

public void addParameter(String paramtype,
                         String paramname)

getParameters

public final List getParameters()

addThrowable

public final void addThrowable(String throwable)

getThrowables

public final Iterator getThrowables()

setLiteral

public void setLiteral(String literal)

getLiteral

public final String getLiteral()

getWrappedLiteral

public abstract String getWrappedLiteral()

setLastParameterStart

public void setLastParameterStart(int pos)
Ignores this information. To be overridden by classes needing this information.

See Also:
JavaConstructor.setLastParameterStart(int)

setLastParameterEnd

public void setLastParameterEnd(int pos)
Ignores this information. To be overridden by classes needing this information.

See Also:
JavaConstructor.setLastParameterEnd(int)

printMore

public void printMore(PrintStream o)
Overrides:
printMore in class JavaFeature

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.