org.argouml.language.java.generator
Class CodePiece

java.lang.Object
  extended byorg.argouml.language.java.generator.CodePiece
Direct Known Subclasses:
CompositeCodePiece, NamedCodePiece, SimpleCodePiece

public abstract class CodePiece
extends Object

A piece of code is a continuous part of a source code file. The code piece is going to be replaced by a string generated from the UML model.


Constructor Summary
CodePiece()
           
 
Method Summary
abstract  int getEndLine()
           
abstract  int getEndPosition()
           
abstract  int getStartLine()
           
abstract  int getStartPosition()
           
abstract  StringBuffer getText()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodePiece

public CodePiece()
Method Detail

getText

public abstract StringBuffer getText()
Returns:
the string representation for this piece of code

getStartPosition

public abstract int getStartPosition()
Returns:
the start position

getEndPosition

public abstract int getEndPosition()
Returns:
the end position

getStartLine

public abstract int getStartLine()
Returns:
the start line

getEndLine

public abstract int getEndLine()
Returns:
the end line


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook