All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.java.decompiler.util.token.FieldTextToken Maven / Gradle / Ivy

Go to download

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.FieldDescriptor;

public class FieldTextToken extends TextToken {
  public final String className;
  public final String name;
  public final FieldDescriptor descriptor;

  public FieldTextToken(int start, int length, boolean declaration, String className, String name, FieldDescriptor descriptor) {
    super(start, length, declaration);
    this.className = className;
    this.name = name;
    this.descriptor = descriptor;
  }

  @Override
  public FieldTextToken copy() {
    return new FieldTextToken(start, length, declaration, className, name, descriptor);
  }

  @Override
  public void visit(TextTokenVisitor visitor) {
    visitor.visitField(new TextRange(start, length), declaration, className, name, descriptor);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy