org.jetbrains.java.decompiler.util.token.MethodTextToken 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;
import org.jetbrains.java.decompiler.struct.gen.MethodDescriptor;
public class MethodTextToken extends TextToken {
public final String className;
public final String name;
public final MethodDescriptor descriptor;
public MethodTextToken(int start, int length, boolean declaration, String className, String name, MethodDescriptor descriptor) {
super(start, length, declaration);
this.className = className;
this.name = name;
this.descriptor = descriptor;
}
@Override
public MethodTextToken copy() {
return new MethodTextToken(start, length, declaration, className, name, descriptor);
}
@Override
public void visit(TextTokenVisitor visitor) {
visitor.visitMethod(new TextRange(start, length), declaration, className, name, descriptor);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy