modules/graphics/src/main/java/com/sun/javafx/css/parser/Token.java

Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization

*** 24,51 **** */ package com.sun.javafx.css.parser; ! final class Token { ! final static int EOF = -1; ! final static int INVALID = 0; ! final static int SKIP = 1; ! final static Token EOF_TOKEN = new Token(EOF, "EOF"); ! final static Token INVALID_TOKEN = new Token(INVALID, "INVALID"); ! final static Token SKIP_TOKEN = new Token(SKIP, "SKIP"); ! Token(int type, String text, int line, int offset) { this.type = type; this.text = text; this.line = line; this.offset = offset; } ! Token(int type, String text) { this(type, text, -1, -1); } Token(int type) { this(type, null); --- 24,51 ---- */ package com.sun.javafx.css.parser; ! public final class Token { ! public final static int EOF = -1; ! public final static int INVALID = 0; ! public final static int SKIP = 1; ! public final static Token EOF_TOKEN = new Token(EOF, "EOF"); ! public final static Token INVALID_TOKEN = new Token(INVALID, "INVALID"); ! public final static Token SKIP_TOKEN = new Token(SKIP, "SKIP"); ! public Token(int type, String text, int line, int offset) { this.type = type; this.text = text; this.line = line; this.offset = offset; } ! public Token(int type, String text) { this(type, text, -1, -1); } Token(int type) { this(type, null);
*** 53,79 **** private Token() { this(0, "INVALID"); } ! String getText() { return text; } ! int getType() { return type; } ! int getLine() { return line; } void setLine(int line) { this.line = line; } ! int getOffset() { return offset; } void setOffset(int offset) { this.offset = offset; --- 53,79 ---- private Token() { this(0, "INVALID"); } ! public String getText() { return text; } ! public int getType() { return type; } ! public int getLine() { return line; } void setLine(int line) { this.line = line; } ! public int getOffset() { return offset; } void setOffset(int offset) { this.offset = offset;