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

org.umlg.java.metamodel.OJVisibleElement Maven / Gradle / Ivy

There is a newer version: 2.0.15
Show newest version
package org.umlg.java.metamodel;

import org.umlg.java.metamodel.generated.OJVisibleElementGEN;

public abstract class OJVisibleElement extends OJVisibleElementGEN {
	
	/******************************************************
	 * The constructor for this classifier.
	*******************************************************/	
	public OJVisibleElement() {
		super();
	}

	public String visToJava(OJVisibleElement elem){
		StringBuilder visInfo = new StringBuilder();
		if (elem.isStatic()) visInfo.append("static ");
		if (elem.isFinal()) visInfo.append("final ");
		if (elem.isVolatile()) visInfo.append("volatile ");
		if (elem.getVisibility() != OJVisibilityKind.DEFAULT) {
			visInfo.append(elem.getVisibility().toString());
		}
		return visInfo.toString();
	}
	
	public void copyDeepInfoInto(OJField copy) {
		super.copyInfoInto(copy);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy