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

org.aspectj.ajdt.internal.compiler.DeclareAnnotationsPrinter Maven / Gradle / Ivy

There is a newer version: 1.9.22.1
Show newest version
/* *******************************************************************
 * Copyright (c) 2010 Contributors
 * All rights reserved.
 * This program and the accompanying materials are made available
 * under the terms of the Eclipse Public License v 2.0
 * which accompanies this distribution and is available at
 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
 *
 * Contributors:
 *     Andy Clement - SpringSource
 * ******************************************************************/
//package org.aspectj.ajdt.internal.compiler;
//
//import org.aspectj.ajdt.internal.compiler.ast.DeclareAnnotationDeclaration;
//import org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation;
//import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodScope;
//
//class DeclareAnnotationsPrinter extends HelperPrinter {
//
//	private DeclareAnnotationDeclaration dad;
//
//	DeclareAnnotationsPrinter(DeclareAnnotationDeclaration md, MethodScope mscope) {
//		super(mscope);
//		output = new StringBuilder();
//		this.amd = md;
//		this.dad = md;
//	}
//
//	public String print() {
//		return print(2);
//	}
//
//	public String print(int tab) {
//		output = new StringBuilder();
//		Annotation[] annos = dad.annotations;
//		int count = 0;
//		for (int a = 0; a < annos.length; a++) {
//			Annotation anno = annos[a];
//			String aa = anno.type.toString();
//			if (!aa.startsWith("org.aspectj")) {
//				if (count > 0) {
//					output.append(' ');
//				}
//				printAnnotation(anno);
//				count++;
//			}
//		}
//		return output.toString();
//	}
// }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy