#Java - Code Snippets for '#.Parameters' - 2 code snippet(s) found |
|
Sample 1. Usage of java.lang.reflect.ParameterizedType | |
|
ParameterizedType ptype = (ParameterizedType)type;
Class raw = (Class)ptype.getRawType();
|
|
Like Feedback Reflection ParameterizedType |
|
|
Sample 2. Code Sample / Example / Snippet of org.apache.bcel.classfile.ParameterAnnotations | |
|
public static ParameterAnnotationEntry[] createParameterAnnotationEntries(final Attribute[] attrs) {
final List<ParameterAnnotationEntry> accumulatedAnnotations = new ArrayList<>(attrs.length);
for (final Attribute attribute : attrs) {
if (attribute instanceof ParameterAnnotations) {
final ParameterAnnotations runtimeAnnotations = (ParameterAnnotations)attribute;
Collections.addAll(accumulatedAnnotations, runtimeAnnotations.getParameterAnnotationEntries());
}
}
return accumulatedAnnotations.toArray(new ParameterAnnotationEntry[accumulatedAnnotations.size()]);
}
|
|
Like Feedback org.apache.bcel.classfile.ParameterAnnotations |
|
|