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
All Methods Instance Methods Concrete Methods 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, wait
-
Methods inherited from interface com.scriptbasic.interfaces.LexicalElement
booleanValue, doubleValue, getLexeme, getType, isBoolean, isDouble, isIdentifier, isLineTerminator, isLong, isString, isSymbol, isSymbol, longValue, stringValue
-
Methods inherited from interface com.scriptbasic.interfaces.SourceLocationBound
getFileName, getLineNumber, getPosition
-
-
-
-
Method Detail
-
isNumeric
public final java.lang.Boolean isNumeric()
- Specified by:
isNumericin interfaceLexicalElement
-
isLiteralConstant
public final java.lang.Boolean isLiteralConstant()
- Specified by:
isLiteralConstantin interfaceLexicalElement
-
-