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

org.eclipse.jdt.internal.compiler.classfmt.JavaBinaryNames Maven / Gradle / Ivy

There is a newer version: 3.39.0
Show newest version
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 
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy