org.grinvin.expr

Class IntegerLiteral

Implemented Interfaces:
Expression, Literal

public class IntegerLiteral
extends java.lang.Object
implements Literal

Expression representing an integer literal.

Field Summary

static Expression
MINUS_ONE
static Expression
ONE
static Expression
TWO

Constructor Summary

IntegerLiteral(int value)
Create an integer literal with the given value.

Method Summary

void
accept(Expression.Visitor visitor)
Accept a visitor on this node.
String
toString()

Field Details

MINUS_ONE

public static final Expression MINUS_ONE

ONE

public static final Expression ONE

TWO

public static final Expression TWO

Constructor Details

IntegerLiteral

public IntegerLiteral(int value)
Create an integer literal with the given value.

Method Details

accept

public void accept(Expression.Visitor visitor)
Accept a visitor on this node.
Specified by:
accept in interface Expression

toString

public String toString()