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

org.reflections.adapters.MetadataAdapter Maven / Gradle / Ivy

The newest version!
/**
 * Copyright © 2013 Sven Ruppert ([email protected])
 *
 * 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.reflections.adapters;

import org.reflections.vfs.Vfs;

import java.util.List;

/**
 *
 */
public interface MetadataAdapter {

  //
  String getClassName(final C cls);

  String getSuperclassName(final C cls);

  List getInterfacesNames(final C cls);

  //
  List getFields(final C cls);

  List getMethods(final C cls);

  String getMethodName(final M method);

  List getParameterNames(final M method);

  List getClassAnnotationNames(final C aClass);

  List getFieldAnnotationNames(final F field);

  List getMethodAnnotationNames(final M method);

  List getParameterAnnotationNames(final M method, final int parameterIndex);

  String getReturnTypeName(final M method);

  String getFieldName(final F field);

  C getOfCreateClassObject(Vfs.File file) throws Exception;

  String getMethodModifier(M method);

  String getMethodKey(C cls, M method);

  String getMethodFullKey(C cls, M method);

  boolean isPublic(Object o);

  boolean acceptsInput(String file);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy