public final class JavadocToken extends Object implements Serializable
Constructor and Description |
---|
JavadocToken(JavadocTokenKind kind,
String text,
int start)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
JavadocTokenKind |
getKind()
Returns the token kind.
|
IrLocation |
getLocation()
Returns the location of this token.
|
int |
getStartPosition()
Returns the starting position (0-origin).
|
String |
getText()
Returns the token image.
|
String |
toString() |
public JavadocToken(JavadocTokenKind kind, String text, int start)
kind
- the token kindtext
- the token imagestart
- the starting positionIllegalArgumentException
- if the parameters are null
public JavadocTokenKind getKind()
public String getText()
public int getStartPosition()
public IrLocation getLocation()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.