
org.jenkinsci.constant_pool_scanner.Utf8Constant Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of constant-pool-scanner Show documentation
Show all versions of constant-pool-scanner Show documentation
Simple utility to scan Java bytecode for class references in the constant pool.
The newest version!
package org.jenkinsci.constant_pool_scanner;
/**
* UTF-8 Constant (which is separate from string constant.)
*
* @author Kohsuke Kawaguchi
*/
public final class Utf8Constant implements CharSequence {
String actual;
public String get() {
return actual;
}
public int length() {
return get().length();
}
public char charAt(int index) {
return get().charAt(index);
}
public String subSequence(int start, int end) {
return get().substring(start,end);
}
@Override
public String toString() {
return actual;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy