Example usage for org.antlr.v4.runtime Token getText

List of usage examples for org.antlr.v4.runtime Token getText

Introduction

In this page you can find the example usage for org.antlr.v4.runtime Token getText.

Prototype

String getText();

Source Link

Document

Get the text of the token.

Usage

From source file:de.huberlin.cuneiform.language.CorrelParam.java

License:Apache License

public void addParam(Token idToken, int type) {

    if (idToken == null)
        throw new NullPointerException("Id token must not be null.");

    add(new ParamItem(idToken.getText(), type));
}

From source file:de.huberlin.cuneiform.language.DefTask.java

License:Apache License

public DefTask(Token idToken) {
    this(idToken.getText());
}

From source file:de.huberlin.cuneiform.language.DefTask.java

License:Apache License

public void addLabel(Token idToken) {

    if (idToken == null)
        throw new NullPointerException("Label token must not be null.");

    addLabel(idToken.getText());
}

From source file:de.huberlin.cuneiform.language.DefTaskOutput.java

License:Apache License

public DefTaskOutput(Token idToken, int type) {
    this(idToken.getLine(), idToken.getText(), type);
}

From source file:de.huberlin.cuneiform.language.ForMethod.java

License:Apache License

public ForMethod(Token idToken) {
    this(idToken.getLine(), idToken.getText());
}

From source file:de.huberlin.cuneiform.language.IdExpression.java

License:Apache License

public IdExpression(Token idToken) {
    this(idToken.getText());
}

From source file:de.huberlin.cuneiform.language.MacroExpression.java

License:Apache License

public MacroExpression(Token idToken) {
    this(idToken.getText());
}

From source file:de.huberlin.cuneiform.language.Method.java

License:Apache License

public void addVar(Token idToken) {

    if (idToken == null)
        throw new NullPointerException("Id token must not be null.");

    addVar(idToken.getText());
}

From source file:de.huberlin.cuneiform.language.RawBodyContainer.java

License:Apache License

public void setBody(Token bodyToken) {

    if (bodyToken == null)
        throw new NullPointerException("Body token must not be null.");

    setBody(bodyToken.getText());
}

From source file:de.huberlin.cuneiform.language.ReduceParam.java

License:Apache License

public void setValue(Token idToken, int type) {

    if (idToken == null)
        throw new NullPointerException("Id token must not be null.");

    setValue(idToken.getText(), type);
}