| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| package org.apache.felix.scrplugin.tags; |
| |
| import org.apache.maven.plugin.MojoExecutionException; |
| |
| /** |
| * <code>JavaClassDescription.java</code>... |
| * Description of a java class |
| * |
| */ |
| public interface JavaClassDescription { |
| |
| /** |
| * Get the java class tag with the name. |
| * @param name |
| * @return the tag or null. |
| */ |
| JavaTag getTagByName(String name); |
| |
| /** |
| * Get all class tags with this name. |
| * @param name |
| * @param inherited If true, parent classes are searched as well. |
| * @return An array of tags or the empty array. |
| * @throws MojoExecutionException |
| */ |
| JavaTag[] getTagsByName(String name, boolean inherited) |
| throws MojoExecutionException; |
| |
| /** |
| * Get the description for the parent class. |
| * @return |
| * @throws MojoExecutionException |
| */ |
| JavaClassDescription getSuperClass() throws MojoExecutionException; |
| |
| /** |
| * Get the name of the described class. |
| * @return |
| */ |
| String getName(); |
| |
| JavaField[] getFields(); |
| |
| JavaClassDescription[] getImplementedInterfaces() throws MojoExecutionException; |
| |
| /** |
| * Search for a method with the given signature. |
| * @param name |
| * @param parameters |
| * @return |
| * @throws MojoExecutionException |
| */ |
| JavaMethod getMethodBySignature(String name, String[] parameters) |
| throws MojoExecutionException; |
| |
| /** |
| * Is this class public? |
| * @return |
| */ |
| boolean isPublic(); |
| |
| /** |
| * Is this class abstract? |
| * @return |
| */ |
| boolean isAbstract(); |
| |
| /** |
| * Is this class an interface? |
| * @return |
| */ |
| boolean isInterface(); |
| |
| JavaMethod[] getMethods(); |
| |
| /** |
| * Is this class of the type? |
| * @param type |
| * @return |
| * @throws MojoExecutionException |
| */ |
| boolean isA(String type) throws MojoExecutionException; |
| } |