fi.hu.cs.titokone
Class Source

java.lang.Object
  extended byfi.hu.cs.titokone.Source
All Implemented Interfaces:
TTK91CompileSource

public class Source
extends java.lang.Object
implements TTK91CompileSource

This class represents source code. It contains the source as a delimited string.


Field Summary
private  java.lang.String sourceString
          The source code as one long String, lines delimited with \n, \r\n or \r.
 
Constructor Summary
Source(java.lang.String source)
          This constructor initializes sourceString with its given string.
 
Method Summary
 java.lang.String getSource()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceString

private java.lang.String sourceString
The source code as one long String, lines delimited with \n, \r\n or \r.

Constructor Detail

Source

public Source(java.lang.String source)
This constructor initializes sourceString with its given string.

Parameters:
source - String containing source delimited with \n, \r\n or \r.
Method Detail

getSource

public java.lang.String getSource()
Specified by:
getSource in interface TTK91CompileSource
Returns:
The source code in one long String, lines delimited with \n, \r\n or \r.