org.argouml.language.java.generator
Class OperationCodePiece

java.lang.Object
  |
  +--org.argouml.language.java.generator.CodePiece
        |
        +--org.argouml.language.java.generator.NamedCodePiece
              |
              +--org.argouml.language.java.generator.OperationCodePiece

public class OperationCodePiece
extends NamedCodePiece

This code piece represents an operation declaration.


Constructor Summary
OperationCodePiece(CodePiece javadocDef, CodePiece operationDef, java.lang.String name)
          Constructor.
 
Method Summary
 int getEndLine()
          Return the end line
 int getEndPosition()
          Return the end position.
 int getStartLine()
          Return the start line
 int getStartPosition()
          Return the start position.
 java.lang.StringBuffer getText()
          Return the string representation for this piece of code.
 void write(java.io.BufferedReader reader, java.io.BufferedWriter writer, java.util.Stack parseStateStack)
          Write the code this piece represents to file.
 
Methods inherited from class org.argouml.language.java.generator.NamedCodePiece
ffCodePiece
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationCodePiece

public OperationCodePiece(CodePiece javadocDef,
                          CodePiece operationDef,
                          java.lang.String name)
Constructor.
Parameters:
javadocDef - The code piece for the javadoc.
operationDef - The code piece this operation represents.
name - The name of the operation.
Method Detail

getText

public java.lang.StringBuffer getText()
Return the string representation for this piece of code.
Overrides:
getText in class CodePiece

getStartPosition

public int getStartPosition()
Return the start position.
Overrides:
getStartPosition in class CodePiece

getEndPosition

public int getEndPosition()
Return the end position.
Overrides:
getEndPosition in class CodePiece

getStartLine

public int getStartLine()
Return the start line
Overrides:
getStartLine in class CodePiece

getEndLine

public int getEndLine()
Return the end line
Overrides:
getEndLine in class CodePiece

write

public void write(java.io.BufferedReader reader,
                  java.io.BufferedWriter writer,
                  java.util.Stack parseStateStack)
           throws java.lang.Exception
Write the code this piece represents to file. Remove this feature from the top vector in the stack newFeaturesStack.
Overrides:
write in class NamedCodePiece
Following copied from class: org.argouml.language.java.generator.NamedCodePiece
Parameters:
reader - Read original code from this.
writer - Write code to this.
parseStateStack - Information with one stack frame for each classifier that the parser has descended into.


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook