📄 leapyearbeanbeaninfo.java
字号:
/* Uncomment the following lines to print uncaught exceptions to stdout */
// System.out.println("--------- UNCAUGHT EXCEPTION ---------");
// exception.printStackTrace(System.out);
}
/**
* Gets the isLeapYear(int) method descriptor.
* @return java.beans.MethodDescriptor
*/
public java.beans.MethodDescriptor isLeapYear_intMethodDescriptor() {
java.beans.MethodDescriptor aDescriptor = null;
try {
/* Create and return the isLeapYear(int) method descriptor. */
java.lang.reflect.Method aMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aParameterTypes[] = {
int.class
};
aMethod = getBeanClass().getMethod("isLeapYear", aParameterTypes);
} catch (Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
aMethod = findMethod(getBeanClass(), "isLeapYear", 1);
};
try {
/* Try creating the method descriptor with parameter descriptors. */
java.beans.ParameterDescriptor aParameterDescriptor1 = new java.beans.ParameterDescriptor();
aParameterDescriptor1.setName("arg1");
aParameterDescriptor1.setDisplayName("argYear");
java.beans.ParameterDescriptor aParameterDescriptors[] = {
aParameterDescriptor1
};
aDescriptor = new java.beans.MethodDescriptor(aMethod, aParameterDescriptors);
} catch (Throwable exception) {
/* Try creating the method descriptor without parameter descriptors. */
handleException(exception);
aDescriptor = new java.beans.MethodDescriptor(aMethod);
};
/* aDescriptor.setDisplayName("isLeapYear(int)"); */
/* aDescriptor.setShortDescription("isLeapYear(int)"); */
/* aDescriptor.setExpert(false); */
/* aDescriptor.setHidden(false); */
/* aDescriptor.setValue("preferred", new Boolean(false)); */
} catch (Throwable exception) {
handleException(exception);
};
return aDescriptor;
}
/**
* Gets the leapYears property descriptor.
* @return java.beans.IndexedPropertyDescriptor
*/
public java.beans.IndexedPropertyDescriptor leapYearsPropertyDescriptor() {
java.beans.IndexedPropertyDescriptor aDescriptor = null;
try {
try {
/* Using methods via getMethod is the faster way to create the leapYears property descriptor. */
java.lang.reflect.Method aGetMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aGetMethodParameterTypes[] = {};
aGetMethod = getBeanClass().getMethod("getLeapYears", aGetMethodParameterTypes);
} catch (Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
aGetMethod = findMethod(getBeanClass(), "getLeapYears", 0);
};
java.lang.reflect.Method aSetMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aSetMethodParameterTypes[] = {
int[].class
};
aSetMethod = getBeanClass().getMethod("setLeapYears", aSetMethodParameterTypes);
} catch (Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
aSetMethod = findMethod(getBeanClass(), "setLeapYears", 1);
};
java.lang.reflect.Method aGetIndexedMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aGetIndexedMethodParameterTypes[] = {
int.class
};
aGetIndexedMethod = getBeanClass().getMethod("getLeapYears", aGetIndexedMethodParameterTypes);
} catch (Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
aGetIndexedMethod = findMethod(getBeanClass(), "getLeapYears", 1);
};
java.lang.reflect.Method aSetIndexedMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aSetIndexedMethodParameterTypes[] = {
int.class,
int.class
};
aSetIndexedMethod = getBeanClass().getMethod("setLeapYears", aSetIndexedMethodParameterTypes);
} catch (Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
aSetIndexedMethod = findMethod(getBeanClass(), "setLeapYears", 2);
};
aDescriptor = new java.beans.IndexedPropertyDescriptor("leapYears"
, aGetMethod, aSetMethod, aGetIndexedMethod, aSetIndexedMethod);
} catch (Throwable exception) {
/* Since we failed using methods, try creating a default property descriptor. */
handleException(exception);
aDescriptor = new java.beans.IndexedPropertyDescriptor("leapYears"
, getBeanClass());
};
/* aDescriptor.setBound(false); */
/* aDescriptor.setConstrained(false); */
/* aDescriptor.setDisplayName("leapYears"); */
/* aDescriptor.setShortDescription("leapYears"); */
/* aDescriptor.setExpert(false); */
/* aDescriptor.setHidden(false); */
/* aDescriptor.setValue("preferred", new Boolean(false)); */
/* aDescriptor.setValue("ivjDesignTimeProperty", new Boolean(true)); */
} catch (Throwable exception) {
handleException(exception);
};
return aDescriptor;
}
/**
* Gets the setLeapYears(int, int) method descriptor.
* @return java.beans.MethodDescriptor
*/
public java.beans.MethodDescriptor setLeapYears_int_intMethodDescriptor() {
java.beans.MethodDescriptor aDescriptor = null;
try {
/* Create and return the setLeapYears(int, int) method descriptor. */
java.lang.reflect.Method aMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aParameterTypes[] = {
int.class,
int.class
};
aMethod = getBeanClass().getMethod("setLeapYears", aParameterTypes);
} catch (Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
aMethod = findMethod(getBeanClass(), "setLeapYears", 2);
};
try {
/* Try creating the method descriptor with parameter descriptors. */
java.beans.ParameterDescriptor aParameterDescriptor1 = new java.beans.ParameterDescriptor();
aParameterDescriptor1.setName("arg1");
aParameterDescriptor1.setDisplayName("index");
java.beans.ParameterDescriptor aParameterDescriptor2 = new java.beans.ParameterDescriptor();
aParameterDescriptor2.setName("arg2");
aParameterDescriptor2.setDisplayName("leapYears");
java.beans.ParameterDescriptor aParameterDescriptors[] = {
aParameterDescriptor1,
aParameterDescriptor2
};
aDescriptor = new java.beans.MethodDescriptor(aMethod, aParameterDescriptors);
} catch (Throwable exception) {
/* Try creating the method descriptor without parameter descriptors. */
handleException(exception);
aDescriptor = new java.beans.MethodDescriptor(aMethod);
};
/* aDescriptor.setDisplayName("setLeapYears(int, int)"); */
/* aDescriptor.setShortDescription("setLeapYears(int, int)"); */
/* aDescriptor.setExpert(false); */
/* aDescriptor.setHidden(false); */
/* aDescriptor.setValue("preferred", new Boolean(false)); */
} catch (Throwable exception) {
handleException(exception);
};
return aDescriptor;
}
/**
* Gets the startYear property descriptor.
* @return java.beans.PropertyDescriptor
*/
public java.beans.PropertyDescriptor startYearPropertyDescriptor() {
java.beans.PropertyDescriptor aDescriptor = null;
try {
try {
/* Using methods via getMethod is the faster way to create the startYear property descriptor. */
java.lang.reflect.Method aGetMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aGetMethodParameterTypes[] = {};
aGetMethod = getBeanClass().getMethod("getStartYear", aGetMethodParameterTypes);
} catch (Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
aGetMethod = findMethod(getBeanClass(), "getStartYear", 0);
};
java.lang.reflect.Method aSetMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aSetMethodParameterTypes[] = {
int.class
};
aSetMethod = getBeanClass().getMethod("setStartYear", aSetMethodParameterTypes);
} catch (Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
aSetMethod = findMethod(getBeanClass(), "setStartYear", 1);
};
aDescriptor = new java.beans.PropertyDescriptor("startYear"
, aGetMethod, aSetMethod);
} catch (Throwable exception) {
/* Since we failed using methods, try creating a default property descriptor. */
handleException(exception);
aDescriptor = new java.beans.PropertyDescriptor("startYear"
, getBeanClass());
};
/* aDescriptor.setBound(false); */
/* aDescriptor.setConstrained(false); */
/* aDescriptor.setDisplayName("startYear"); */
/* aDescriptor.setShortDescription("startYear"); */
/* aDescriptor.setExpert(false); */
/* aDescriptor.setHidden(false); */
/* aDescriptor.setValue("preferred", new Boolean(false)); */
/* aDescriptor.setValue("ivjDesignTimeProperty", new Boolean(true)); */
} catch (Throwable exception) {
handleException(exception);
};
return aDescriptor;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -