blob: 37d5d084378113f258c3128f5e2dcb6c18c457b3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005 BEA Systems, Inc.
* 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
*
* Contributors:
* mkaufman@bea.com - initial API and implementation
*
*******************************************************************************/
package org.eclipse.jdt.apt.tests.annotations.nestedhelloworld;
import org.eclipse.jdt.apt.tests.annotations.helloworld.HelloWorldAnnotation;
import org.eclipse.jdt.apt.tests.annotations.helloworld.HelloWorldAnnotationProcessor;
import com.sun.mirror.apt.AnnotationProcessorEnvironment;
public class NestedHelloWorldAnnotationProcessor extends
HelloWorldAnnotationProcessor {
public NestedHelloWorldAnnotationProcessor(AnnotationProcessorEnvironment env)
{
super( env );
}
public String getCode() { return CODE; }
@SuppressWarnings("nls")
private final String CODE =
"package " + getPackageName() + ";" + "\n" +
"@" + HelloWorldAnnotation.class.getName() + "\n" +
"public class NestedHelloWorldAnnotationGeneratedClass " + "\n" +
"{ }";
public String getPackageName() { return "nested.hello.world.generatedclass.pkg"; } //$NON-NLS-1$
public String getTypeName() { return "NestedHelloWorldAnnotationGeneratedClass"; } //$NON-NLS-1$
}