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

com.softicar.platform.common.core.java.access.level.AbstractJavaAccessLevelModifiable Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
package com.softicar.platform.common.core.java.access.level;

import org.objectweb.asm.Opcodes;

public abstract class AbstractJavaAccessLevelModifiable {

	public boolean isAbstract() {

		return testAccess(Opcodes.ACC_ABSTRACT);
	}

	public boolean isAnnotation() {

		return testAccess(Opcodes.ACC_ANNOTATION);
	}

	public boolean isEnum() {

		return testAccess(Opcodes.ACC_ENUM);
	}

	public boolean isFinal() {

		return testAccess(Opcodes.ACC_FINAL);
	}

	public boolean isInterface() {

		return testAccess(Opcodes.ACC_INTERFACE);
	}

	public boolean isPublic() {

		return testAccess(Opcodes.ACC_PUBLIC);
	}

	public boolean isStatic() {

		return testAccess(Opcodes.ACC_STATIC);
	}

	public boolean isSynthetic() {

		return testAccess(Opcodes.ACC_SYNTHETIC);
	}

	public abstract int getAccess();

	private boolean testAccess(int mask) {

		return (getAccess() & mask) != 0;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy