org.jetbrains.java.decompiler.util.token.TextToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vineflower Show documentation
Show all versions of vineflower Show documentation
Modern Java & JVM language decompiler aiming to be as accurate as possible, with an emphasis on output quality.
The newest version!
package org.jetbrains.java.decompiler.util.token;
import org.jetbrains.java.decompiler.main.extern.TextTokenVisitor;
public abstract class TextToken {
protected int start;
protected int length;
protected boolean declaration;
public TextToken(int start, int length, boolean declaration) {
this.start = start;
this.length = length;
this.declaration = declaration;
}
public void shift(int amount) {
this.start += amount;
}
public abstract TextToken copy();
public abstract void visit(TextTokenVisitor visitor);
public int getStart() {
return start;
}
public int getLength() {
return length;
}
public boolean isDeclaration() {
return declaration;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy