本文整理汇总了C#中biz.ritter.javapi.getName方法的典型用法代码示例。如果您正苦于以下问题:C# biz.ritter.javapi.getName方法的具体用法?C# biz.ritter.javapi.getName怎么用?C# biz.ritter.javapi.getName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类biz.ritter.javapi
的用法示例。
在下文中一共展示了biz.ritter.javapi.getName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IncompleteAnnotationException
/**
* Constructs an instance with the incomplete annotation type and the name
* of the element that's missing.
*
* @param annotationType
* the annotation type.
* @param elementName
* the name of the incomplete element.
*/
public IncompleteAnnotationException(
java.lang.Class annotationType, String elementName)
: base("The element, "+elementName+", is not complete for the annotation "+annotationType.getName()+".")
{
//$NON-NLS-1$
this.annotationTypeJ = annotationType;
this.elementNameJ = elementName;
}
示例2: getExplicitBeanInfo
private static BeanInfo getExplicitBeanInfo(java.lang.Class beanClass)
{
String beanInfoClassName = beanClass.getName() + "BeanInfo"; //$NON-NLS-1$
try
{
return loadBeanInfo(beanInfoClassName, beanClass);
}
catch (Exception e)
{
// fall through
}
int index = beanInfoClassName.lastIndexOf('.');
String beanInfoName = index >= 0 ? beanInfoClassName
.substring(index + 1) : beanInfoClassName;
BeanInfo theBeanInfo = null;
BeanDescriptor beanDescriptor = null;
for (int i = 0; i < searchPath.Length; i++)
{
beanInfoClassName = searchPath[i] + "." + beanInfoName; //$NON-NLS-1$
try
{
theBeanInfo = loadBeanInfo(beanInfoClassName, beanClass);
}
catch (Exception e)
{
// ignore, try next one
continue;
}
beanDescriptor = theBeanInfo.getBeanDescriptor();
if (beanDescriptor != null
&& beanClass == beanDescriptor.getBeanClass())
{
return theBeanInfo;
}
}
if (new java.lang.Class(typeof(BeanInfo)).isAssignableFrom(beanClass))
{
try
{
return loadBeanInfo(beanClass.getName(), beanClass);
}
catch (Exception e)
{
// fall through
}
}
return null;
}
示例3: insertProviderAt
/**
* Inserts a provider at a specified position
*
* @param provider
* @param position
* @return
*/
public static int insertProviderAt(java.security.Provider provider, int position)
{
int size = providers.size();
if ((position < 1) || (position > size))
{
position = size + 1;
}
providers.add(position - 1, provider);
providersNames.put(provider.getName(), provider);
setNeedRefresh();
return position;
}
示例4: getShortClassName
/**
* <p>
* Utility method for getting the unqualified name of a {@link Class}.
* </p>
*
* @param leguminaClass
* The Class to get the name from.
* @return A String instance or <code>null</code>.
*/
private String getShortClassName(java.lang.Class leguminaClass)
{
if (leguminaClass == null)
{
return null;
}
String beanClassName = leguminaClass.getName();
int lastIndex = beanClassName.lastIndexOf("."); //$NON-NLS-1$
return (lastIndex == -1) ? beanClassName : beanClassName.substring(lastIndex + 1);
}
示例5: InstantiationError
/**
* Constructs a new {@code InstantiationError} with the current stack trace
* and the class that caused this error.
*
* @param clazz
* the class that can not be instantiated.
*/
protected internal InstantiationError(java.lang.Class clazz)
: base(clazz.getName())
{
}