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

org.jnario.jvmmodel.JnarioSignatureHashBuilder Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright (c) 2012 BMW Car IT and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************/
package org.jnario.jvmmodel;

import org.eclipse.xtext.common.types.JvmField;
import org.eclipse.xtext.common.types.descriptions.JvmDeclaredTypeSignatureHashProvider.SignatureHashBuilder;

public class JnarioSignatureHashBuilder extends SignatureHashBuilder {

	/*
	 * FIXME remove when feature step implementation is migrated
	 */
	protected SignatureHashBuilder appendSignature(JvmField field) {
		if(field.getSimpleName() == null){
			return this;
		}
		appendVisibility(field.getVisibility());
		append(" ");
		if (field.isStatic())
			append("static ");
		if (field.isFinal())
			append("final ");
		appendType(field.getType());
		append(" ");
		append(field.getSimpleName());
		return this;
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy