Package com.scriptbasic.lexer
Class BasicLexialElementFactory
- java.lang.Object
-
- com.scriptbasic.lexer.BasicLexialElementFactory
-
public final class BasicLexialElementFactory extends java.lang.ObjectFactory to create a new BasicLexicalElement initializing some fields from the reader.- Author:
- Peter Verhas
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BasicLexicalElementcreate(SourceReader reader)Create a new BasicLexicalElement and fill in the FileName, LineNumber and the Position from the current position of the reader.static BasicLexicalElementcreate(SourceReader reader, int type)
-
-
-
Method Detail
-
create
public static BasicLexicalElement create(SourceReader reader)
Create a new BasicLexicalElement and fill in the FileName, LineNumber and the Position from the current position of the reader.- Parameters:
reader- from where we are going to read the lexical element- Returns:
- a new and initialized lexical element object
-
create
public static BasicLexicalElement create(SourceReader reader, int type)
-
-