public class Lexem extends Object
| Constructor and Description |
|---|
Lexem(int id,
String value,
int start,
int end) |
Lexem(int id,
String value,
Range range) |
| Modifier and Type | Method and Description |
|---|---|
<A extends IAnnotation> |
getAnnotation(Class<A> type) |
Annotations |
getAnnotations() |
int |
getId()
Gets lexem ID.
|
int |
getLexerId()
Gets ID of the lexer that extracted this lexem.
|
Range |
getRange() |
String |
getValue() |
boolean |
isDeleted() |
boolean |
isImmutable() |
<A extends IAnnotation> |
removeAnnotation(Class<A> type) |
void |
setAnnotation(IAnnotation annotation) |
void |
setDeleted(boolean deleted) |
void |
setImmutable(boolean immutable) |
void |
setLexerId(int lexerId) |
String |
toString() |
public Lexem(int id,
String value,
int start,
int end)
public int getId()
public String getValue()
public Range getRange()
public int getLexerId()
public void setLexerId(int lexerId)
public <A extends IAnnotation> A getAnnotation(Class<A> type)
public void setAnnotation(IAnnotation annotation)
public <A extends IAnnotation> A removeAnnotation(Class<A> type)
public boolean isDeleted()
public void setDeleted(boolean deleted)
public boolean isImmutable()
public void setImmutable(boolean immutable)
public Annotations getAnnotations()
Copyright © 2018. All rights reserved.