misim.editor
Interface LineFactory
- All Known Implementing Classes:
- AsmLineFactory, BasicLineFactory
- public interface LineFactory
The LineFactory interface specifies methods to create new
instances of the Line class, or it's subclasses.
Line itself can be subclassed to support information
needed by assemblers or compilers. The LineFactory can
then be supplied to the editor to create the appropriate
subclass of line for the type of file being edited.
Method Summary |
Line |
createLine()
Create an instance of a Line with no tokens - ie. |
Line |
createLine(java.util.Vector tokens)
Create an instance of a Line with the given set of tokens. |
createLine
public Line createLine()
- Create an instance of a Line with no tokens - ie. an empty line
- Returns:
- An instance of the Line class
createLine
public Line createLine(java.util.Vector tokens)
- Create an instance of a Line with the given set of tokens.
- Parameters:
tokens
- A vector of tokens for this line- Returns:
- An instance of the Line class