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

org.yarnandtail.andhow.compile.SimpleVariable Maven / Gradle / Ivy

Go to download

Compile-time annotation processor that records all AndHow Properties and registers them as service providers to be picked up at runtime.

There is a newer version: 1.5.0
Show newest version
package org.yarnandtail.andhow.compile;

/**
 * Compile time representation of a variable w/ just enough information
 * to decide if it is a valid variable for an AndHow Property to be constructed
 * and assigned to.
 */
public class SimpleVariable {

	private final String name;
	private final boolean _static;
	private final boolean _final;

	/**
	 * 
	 * @param name	Name of this variable
	 * @param _static Is this var marked as static?
	 * @param _final Is this var marked as final?
	 */
	public SimpleVariable(String name, boolean _static, boolean _final) {
		this.name = name;
		this._static = _static;
		this._final = _final;
	}

	public String getName() {
		return name;
	}

	public boolean isStatic() {
		return _static;
	}

	public boolean isFinal() {
		return _final;
	}
	

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy