Codota Logo
Executable.getName
Code IndexAdd Codota to your IDE (free)

How to use
getName
method
in
java.lang.reflect.Executable

Best Java code snippets using java.lang.reflect.Executable.getName (Showing top 20 results out of 315)

  • Common ways to obtain Executable
private void myMethod () {
Executable e =
  • Codota IconParameter parameter;parameter.getDeclaringExecutable()
  • Codota IconInjectionPoint injectionPoint;(Executable) injectionPoint.getMember()
  • Codota IconParameterContext parameterContext;parameterContext.getDeclaringExecutable()
  • Smart code suggestions by Codota
}
origin: jooby-project/jooby

 @SuppressWarnings("rawtypes")
 private static String key(final Executable exec) {
  if (exec instanceof Method) {
   return exec.getName() + Type.getMethodDescriptor((Method) exec);
  } else {
   return "<init>" + Type.getConstructorDescriptor((Constructor) exec);
  }
 }
}
origin: oblac/jodd

/**
 * Takes given parameters references and returns reference set for given method or constructor.
 */
public BeanReferences[] resolveReferenceFromValues(final Executable methodOrCtor, final String... parameterReferences) {
  BeanReferences[] references = convertRefToReferences(parameterReferences);
  if (references == null || references.length == 0) {
    references = buildDefaultReferences(methodOrCtor);
  }
  if (methodOrCtor.getParameterTypes().length != references.length) {
    throw new PetiteException("Different number of method parameters and references for: " +
      methodOrCtor.getDeclaringClass().getName() + '#' + methodOrCtor.getName());
  }
  removeAllDuplicateNames(references);
  return references;
}
origin: oblac/jodd

private BeanReferences[] updateReferencesWithDefaultsIfNeeded(final Executable methodOrCtor, BeanReferences[] references) {
  BeanReferences[] defaultReferences = buildDefaultReferences(methodOrCtor);
  if (references == null || references.length == 0) {
    references = defaultReferences;
  }
  if (methodOrCtor.getParameterTypes().length != references.length) {
    throw new PetiteException(
      "Different number of parameters and references for: " + methodOrCtor.getName());
  }
  // apply default parameters
  for (int i = 0; i < references.length; i++) {
    BeanReferences parameterReferences = references[i];
    if (parameterReferenceIsNotSet(parameterReferences)) {
      references[i] = defaultReferences[i];
    }
  }
  return references;
}
origin: pholser/junit-quickcheck

  private static String declarerName(Parameter p) {
    Executable exec = p.getDeclaringExecutable();
    return exec.getDeclaringClass().getName() + '.' + exec.getName();
  }
}
origin: pholser/junit-quickcheck

@Override public Generator<?> parameter(Parameter parameter) {
  return produceGenerator(
    new ParameterTypeContext(
      parameter.getName(),
      parameter.getAnnotatedType(),
      parameter.getDeclaringExecutable().getName()
    ).annotate(parameter));
}
origin: com.github.markusmo3.urm/urm-core

protected String getName() {
  return executable.getName();
}
origin: leangen/graphql-spqr

public TypeMappingException(Executable executable, Parameter parameter, Exception cause) {
  super("Parameter \"" + parameter.getName() + "\" of method \"" + executable.getName() +
      "\" is missing generic type parameters and can not be mapped." +
      " For details and possible solutions see " + Urls.Errors.AMBIGUOUS_PARAMETER_TYPE, cause);
}
origin: com.oracle.truffle/truffle-api

@Override
public String getName() {
  return getReflectionMethod().getName();
}
origin: org.graalvm.truffle/truffle-api

@Override
public String getName() {
  return getReflectionMethod().getName();
}
origin: org.hibernate.validator/hibernate-validator

public static String getSimpleName(Executable executable) {
  return executable instanceof Constructor ? executable.getDeclaringClass().getSimpleName() : executable.getName();
}
origin: io.airlift/parameternames

ParameterNameClassVisitor(Executable executable)
{
  super(Opcodes.ASM5);
  methodName = executable instanceof Constructor ? "<init>" : executable.getName();
  parameterTypes = Arrays.stream(executable.getParameterTypes())
      .map(Type::getType)
      .collect(toList());
  this.methodVisitor = new ParameterNameMethodVisitor(isStatic(executable.getModifiers()), parameterTypes);
}
origin: com.pholser/junit-quickcheck-core

  private static String declarerName(Parameter p) {
    Executable exec = p.getDeclaringExecutable();
    return exec.getDeclaringClass().getName() + '.' + exec.getName();
  }
}
origin: com.github.jcustenborder.kafka.connect/kafka-connect-cdc-test

@Override
public boolean supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext) throws ParameterResolutionException {
 boolean result = false;
 for (Class<? extends Annotation> annotationClass : annotationClasses()) {
  log.trace("Checking if {} is annotated with {}.", parameterContext.getDeclaringExecutable().getName(), annotationClass.getName());
  if (parameterContext.getParameter().isAnnotationPresent(annotationClass)) {
   log.trace("Found {} on {}.", annotationClass.getName(), parameterContext.getDeclaringExecutable().getName());
   result = true;
   break;
  }
 }
 return result;
}
origin: org.jooby/jooby

 @SuppressWarnings("rawtypes")
 private static String key(final Executable exec) {
  if (exec instanceof Method) {
   return exec.getName() + Type.getMethodDescriptor((Method) exec);
  } else {
   return "<init>" + Type.getConstructorDescriptor((Constructor) exec);
  }
 }
}
origin: org.apache.bval/bval-jsr

public static Signature of(Executable x) {
  return new Signature(x.getName(), x.getParameterTypes());
}
origin: org.apache.tomee.patch/bval-jsr

public static Signature of(Executable x) {
  return new Signature(x.getName(), x.getParameterTypes());
}
origin: edu.berkeley.cs.jqf/jqf-fuzz

private ParameterTypeContext createParameterTypeContext(Parameter parameter) {
  Executable exec = parameter.getDeclaringExecutable();
  String declarerName = exec.getDeclaringClass().getName() + '.' + exec.getName();
  return new ParameterTypeContext(
          parameter.getName(),
          parameter.getAnnotatedType(),
          declarerName,
          typeVariables)
          .allowMixedTypes(true).annotate(parameter);
}
origin: rohanpadhye/jqf

private ParameterTypeContext createParameterTypeContext(Parameter parameter) {
  Executable exec = parameter.getDeclaringExecutable();
  String declarerName = exec.getDeclaringClass().getName() + '.' + exec.getName();
  return new ParameterTypeContext(
          parameter.getName(),
          parameter.getAnnotatedType(),
          declarerName,
          typeVariables)
          .allowMixedTypes(true).annotate(parameter);
}
origin: com.pholser/junit-quickcheck-core

@Override public Generator<?> parameter(Parameter parameter) {
  return produceGenerator(
    new ParameterTypeContext(
      parameter.getName(),
      parameter.getAnnotatedType(),
      parameter.getDeclaringExecutable().getName()
    ).annotate(parameter));
}
origin: org.jodd/jodd-petite

/**
 * Takes given parameters references and returns reference set for given method or constructor.
 */
public BeanReferences[] resolveReferenceFromValues(final Executable methodOrCtor, final String... parameterReferences) {
  BeanReferences[] references = convertRefToReferences(parameterReferences);
  if (references == null || references.length == 0) {
    references = buildDefaultReferences(methodOrCtor);
  }
  if (methodOrCtor.getParameterTypes().length != references.length) {
    throw new PetiteException("Different number of method parameters and references for: " +
      methodOrCtor.getDeclaringClass().getName() + '#' + methodOrCtor.getName());
  }
  removeAllDuplicateNames(references);
  return references;
}
java.lang.reflectExecutablegetName

Popular methods of Executable

  • getParameters
  • getDeclaringClass
  • getParameterTypes
  • getParameterCount
  • toGenericString
  • getGenericParameterTypes
  • getModifiers
  • getParameterAnnotations
  • getAnnotation
  • getAnnotations
  • isAnnotationPresent
  • isVarArgs
  • isAnnotationPresent,
  • isVarArgs,
  • getAnnotatedParameterTypes,
  • getAnnotatedReturnType,
  • getAnnotatedReceiverType,
  • getGenericExceptionTypes,
  • isSynthetic,
  • <init>,
  • getAnnotatedExceptionTypes

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now