org.argouml.language.java.generator
Class CompositeCodePiece

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

public class CompositeCodePiece
extends CodePiece

This piece of code is a composition of several adjacent pieces of code. The code piece can have holes.


Field Summary
private  java.util.Vector codePieces
          The code pieces this code piece consists of.
 
Constructor Summary
CompositeCodePiece(CodePiece codePiece)
          Create a composite piece of code.
 
Method Summary
 void add(CodePiece codePiece)
          Append a code piece to the end.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

codePieces

private java.util.Vector codePieces
The code pieces this code piece consists of.

Constructor Detail

CompositeCodePiece

public CompositeCodePiece(CodePiece codePiece)
Create a composite piece of code.

Parameters:
codePiece - A starter code piece.
Method Detail

add

public void add(CodePiece codePiece)
Append a code piece to the end.


getText

public java.lang.StringBuffer getText()
Return the string representation for this piece of code.

Specified by:
getText in class CodePiece

getStartPosition

public int getStartPosition()
Return the start position.

Specified by:
getStartPosition in class CodePiece

getEndPosition

public int getEndPosition()
Return the end position.

Specified by:
getEndPosition in class CodePiece

getStartLine

public int getStartLine()
Return the start line

Specified by:
getStartLine in class CodePiece

getEndLine

public int getEndLine()
Return the end line

Specified by:
getEndLine in class CodePiece


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