Package ortus.boxlang.compiler.ast
Class SourceFile
java.lang.Object
ortus.boxlang.compiler.ast.Source
ortus.boxlang.compiler.ast.SourceFile
- All Implemented Interfaces:
Serializable
Represent a File as source
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ortus.boxlang.compiler.ast.Source
getSurroundingLines
-
Constructor Details
-
SourceFile
Create a source for a given file- Parameters:
file- source File
-
-
Method Details
-
getFile
Returns the File associate to the source- Returns:
- a File instance
-
getCode
Essentially, only used for error messages -
toString
String representation of a file source -
getCodeAsStream
Description copied from class:SourceAbstract method to get the code as a stream- Specified by:
getCodeAsStreamin classSource- Returns:
-