Package org.hl7.fhir.utilities.turtle
Class Turtle.Lexer
- java.lang.Object
-
- org.hl7.fhir.utilities.turtle.Turtle.Lexer
-
- Enclosing class:
- Turtle
public class Turtle.Lexer extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandone()FHIRFormatErrorerror(String message)Stringliteral()Stringnext(Turtle.LexerTokenType type, boolean postColon)Stringpeek()booleanpeek(Turtle.LexerTokenType type, String token)Turtle.LexerTokenTypepeekType()voidtoken(String token)Stringuri()Stringword()voidword(String word)
-
-
-
Constructor Detail
-
Lexer
public Lexer(String source) throws FHIRFormatError
- Throws:
FHIRFormatError
-
-
Method Detail
-
done
public boolean done()
-
next
public String next(Turtle.LexerTokenType type, boolean postColon) throws FHIRFormatError
- Throws:
FHIRFormatError
-
peekType
public Turtle.LexerTokenType peekType()
-
token
public void token(String token) throws FHIRFormatError
- Throws:
FHIRFormatError
-
word
public String word() throws FHIRFormatError
- Throws:
FHIRFormatError
-
uri
public String uri() throws FHIRFormatError
- Throws:
FHIRFormatError
-
literal
public String literal() throws FHIRFormatError
- Throws:
FHIRFormatError
-
peek
public boolean peek(Turtle.LexerTokenType type, String token)
-
error
public FHIRFormatError error(String message)
-
-