Java Code Examples for java.lang.reflect.Method.getAnnotationsByType()

The following are Jave code examples for showing how to use getAnnotationsByType() of the java.lang.reflect.Method class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: ghost   File: MethodCommandCallableRegistrar.java   Source Code and License Vote up 5 votes
MethodNode(@NonNull final Object object, @NonNull final Method method) {
  this.object = object;
  this.method = method;
  this.method.setAccessible(true);
  this.definition = method.getAnnotation(Command.class);
  this.completion = method.getAnnotation(Completion.class);
  this.groups = method.getAnnotationsByType(Group.class);
}