/* * Copyright (C) 2015 Red Hat, Inc. and/or its affiliates. * * Licensed 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.jboss.errai.reflections.adapters; import java.io.IOException; import java.io.InputStream; import java.util.List; /** * */ public interface MetadataAdapter<C,F,M> { // String getClassName(final C cls); String getSuperclassName(final C cls); List<String> getInterfacesNames(final C cls); // List<F> getFields(final C cls); List<M> getMethods(final C cls); String getMethodName(final M method); List<String> getParameterNames(final M method); List<String> getClassAnnotationNames(final C aClass); List<String> getFieldAnnotationNames(final F field); List<String> getMethodAnnotationNames(final M method); List<String> getParameterAnnotationNames(final M method, final int parameterIndex); String getReturnTypeName(final M method); String getFieldName(final F field); C createClassObject(InputStream inputStream) throws IOException; String getMethodModifier(M method); String getMethodKey(C cls, M method); String getMethodFullKey(C cls, M method); }