org.eclipse.jdt.internal.compiler.classfmt.JavaBinaryNames Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ecj Show documentation
Show all versions of ecj Show documentation
Eclipse Compiler for Java(TM)
package org.eclipse.jdt.internal.compiler.classfmt;
public class JavaBinaryNames {
/**
* Returns true iff the given method selector is clinit.
*/
public static boolean isClinit(char[] selector) {
return selector[0] == '<' && selector.length == 8; // Can only match
}
/**
* Returns true iff the given method selector is a constructor.
*/
public static boolean isConstructor(char[] selector) {
return selector[0] == '<' && selector.length == 6; // Can only match
}
}