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.
+ Save this method
Example 1
Project: ghost   File:   View Source Code Vote up 5 votes
MethodNode(@NonNull final Object object, @NonNull final Method method) {
  this.object = object;
  this.method = method;
  this.definition = method.getAnnotation(Command.class);
  this.completion = method.getAnnotation(Completion.class);
  this.groups = method.getAnnotationsByType(Group.class);