Code example for AnnotationMirror

Methods: getAnnotationType

0
				break; 
			case SHORT:
				type = ShortBuffer.class;
				break; 
			case LONG:
				if ( annotation.getAnnotationType().asElement().getAnnotation(PointerType.class) != null ) {
					type = PointerBuffer.class;
				} else { 
					type = LongBuffer.class;
				} 
				break; 
			case BYTE: /* fall through */
 
			case BOOLEAN:
				type = ByteBuffer.class;
				break; 
			default: 
				throw new RuntimeException(kind + " is not allowed");
		} 
		return type;