com.kotcrab.vis.usl.Token Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vis-usl Show documentation
Show all versions of vis-usl Show documentation
UI styling language for scene2d.ui
package com.kotcrab.vis.usl;
/** Single token of USL file */
public class Token {
public String usl;
public int i;
public Type type;
public String content;
public Token (String usl, int i, Type type) {
this.usl = usl;
this.i = i;
this.type = type;
}
public Token (String usl, int i, Type type, String content) {
this.usl = usl;
this.i = i;
this.type = type;
this.content = content;
}
public enum Type {
INVALID,
LCURL, RCURL, // { }
STYLE_BLOCK, STYLE_BLOCK_EXTENDS,
STYLE_BLOCK_OVERRIDE,
GLOBAL_STYLE, PACKAGE,
IDENTIFIER, IDENTIFIER_CONTENT,
INHERITS, INHERITS_NAME,
META_STYLE
}
}