Code example for Method

Methods: getExceptionTypes, getModifiers

0
			} 
		} 
	} 
	 
	private void buildMethodInfo(ConstPool cp, MethodInfo mi, Method m) {
		mi.setAccessFlags(m.getModifiers());
		final Class<?>[] excs = m.getExceptionTypes();
		if (null != excs && 0 != excs.length) {
			final ExceptionsAttribute ea = new ExceptionsAttribute(cp);
			buildExceptionsAttribute(ea, excs);
			mi.setExceptionsAttribute(ea);
		} 
	} 
	 
	private void buildMethodInfo(ConstPool cp, MethodInfo mi, Constructor<?> ctor) {
		mi.setAccessFlags(ctor.getModifiers());
		final Class<?>[] excs = ctor.getExceptionTypes();
		if (null != excs && 0 != excs.length) {
			final ExceptionsAttribute ea = new ExceptionsAttribute(cp);
			buildExceptionsAttribute(ea, excs);
			mi.setExceptionsAttribute(ea);