Package org.hl7.fhir.dstu2.utils
Class FHIRLexer
- java.lang.Object
-
- org.hl7.fhir.dstu2.utils.FHIRLexer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classFHIRLexer.FHIRLexerException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandone()FHIRLexer.FHIRLexerExceptionerror(String msg)FHIRLexer.FHIRLexerExceptionerror(String msg, String location)StringgetCurrent()ExpressionNode.SourceLocationgetCurrentLocation()ExpressionNode.SourceLocationgetCurrentStartLocation()booleanhasComment()booleanhasToken(String kw)booleanisConstant(boolean incDoubleQuotes)booleanisOp()booleanisStringConstant()booleanisToken()voidnext()intnextId()StringprocessConstant(String s)StringreadConstant(String desc)voidsetCurrent(String current)voidskipToken(String token)Stringtake()StringtakeDottedToken()voidtoken(String kw)
-
-
-
Constructor Detail
-
FHIRLexer
public FHIRLexer(String source) throws FHIRLexer.FHIRLexerException
- Throws:
FHIRLexer.FHIRLexerException
-
-
Method Detail
-
getCurrent
public String getCurrent()
-
getCurrentLocation
public ExpressionNode.SourceLocation getCurrentLocation()
-
isConstant
public boolean isConstant(boolean incDoubleQuotes)
-
isStringConstant
public boolean isStringConstant()
-
take
public String take() throws FHIRLexer.FHIRLexerException
- Throws:
FHIRLexer.FHIRLexerException
-
isToken
public boolean isToken()
-
error
public FHIRLexer.FHIRLexerException error(String msg)
-
error
public FHIRLexer.FHIRLexerException error(String msg, String location)
-
next
public void next() throws FHIRLexer.FHIRLexerException
- Throws:
FHIRLexer.FHIRLexerException
-
isOp
public boolean isOp()
-
done
public boolean done()
-
nextId
public int nextId()
-
getCurrentStartLocation
public ExpressionNode.SourceLocation getCurrentStartLocation()
-
setCurrent
public void setCurrent(String current)
-
hasComment
public boolean hasComment()
-
token
public void token(String kw) throws FHIRLexer.FHIRLexerException
- Throws:
FHIRLexer.FHIRLexerException
-
readConstant
public String readConstant(String desc) throws FHIRLexer.FHIRLexerException
- Throws:
FHIRLexer.FHIRLexerException
-
processConstant
public String processConstant(String s) throws FHIRLexer.FHIRLexerException
- Throws:
FHIRLexer.FHIRLexerException
-
skipToken
public void skipToken(String token) throws FHIRLexer.FHIRLexerException
- Throws:
FHIRLexer.FHIRLexerException
-
takeDottedToken
public String takeDottedToken() throws FHIRLexer.FHIRLexerException
- Throws:
FHIRLexer.FHIRLexerException
-
-