Package com.scriptbasic.lexer
Class AbstractLexicalElement
java.lang.Object
com.scriptbasic.lexer.AbstractLexicalElement
- All Implemented Interfaces:
LexicalElement,SourceLocationBound
- Direct Known Subclasses:
BasicLexicalElement
public abstract class AbstractLexicalElement extends java.lang.Object implements LexicalElement
-
Field Summary
Fields inherited from interface com.scriptbasic.interfaces.LexicalElement
TYPE_BOOLEAN, TYPE_DOUBLE, TYPE_IDENTIFIER, TYPE_LONG, TYPE_STRING, TYPE_SYMBOL -
Constructor Summary
Constructors Constructor Description AbstractLexicalElement() -
Method Summary
Modifier and Type Method Description java.lang.BooleanisLiteralConstant()java.lang.BooleanisNumeric()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.scriptbasic.interfaces.LexicalElement
booleanValue, doubleValue, getLexeme, getType, isBoolean, isDouble, isIdentifier, isLineTerminator, isLong, isStatementSeparator, isString, isSymbol, isSymbol, longValue, stringValueMethods inherited from interface com.scriptbasic.interfaces.SourceLocationBound
getFileName, getLineNumber, getPosition
-
Constructor Details
-
AbstractLexicalElement
public AbstractLexicalElement()
-
-
Method Details
-
isNumeric
public final java.lang.Boolean isNumeric()- Specified by:
isNumericin interfaceLexicalElement
-
isLiteralConstant
public final java.lang.Boolean isLiteralConstant()- Specified by:
isLiteralConstantin interfaceLexicalElement
-