本文整理汇总了Java中com.thoughtworks.qdox.model.JavaClass.getFullyQualifiedName方法的典型用法代码示例。如果您正苦于以下问题:Java JavaClass.getFullyQualifiedName方法的具体用法?Java JavaClass.getFullyQualifiedName怎么用?Java JavaClass.getFullyQualifiedName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.thoughtworks.qdox.model.JavaClass
的用法示例。
在下文中一共展示了JavaClass.getFullyQualifiedName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAnnotationValue
import com.thoughtworks.qdox.model.JavaClass; //导入方法依赖的package包/类
/**
* Recuopera o valor de um atributo de uma anotacao
*/
public Object getAnnotationValue(final JavaMethod javaMethod, final String annotName, final String attribute) throws GeradorException {
final JavaClass javaClass = javaMethod.getParentClass();
final String className = javaClass.getFullyQualifiedName();
final Class clazz = getAnnotationClass(className);
final Method method = getMethod(javaMethod, className, clazz);
final Class annClazz = getAnnotationClass(annotName);
final java.lang.annotation.Annotation annotation = method.getAnnotation(annClazz);
final Object value = getValue(javaMethod, annotation, attribute);
return value;
}
示例2: getAnnotationValue
import com.thoughtworks.qdox.model.JavaClass; //导入方法依赖的package包/类
public Object getAnnotationValue(JavaMethod javaMethod, String annotName, String attribute) throws GeradorException{
JavaClass javaClass = javaMethod.getParentClass();
String className = javaClass.getFullyQualifiedName();
Class clazz = forName(className);
Method method = getMethod(javaMethod, className, clazz);
Class annClazz = forName(annotName);
java.lang.annotation.Annotation annotation = method.getAnnotation(annClazz);
Object value=getValue(annotation,attribute);
return value;
}
示例3: getAnnotationValue
import com.thoughtworks.qdox.model.JavaClass; //导入方法依赖的package包/类
/**
* Recuopera o valor de um atributo de uma anotacao
*/
public Object getAnnotationValue(final JavaMethod javaMethod, final String annotName, final String attribute) throws GeradorException {
final JavaClass javaClass = javaMethod.getParentClass();
final String className = javaClass.getFullyQualifiedName();
final Class clazz = getAnnotationClass(className);
final Method method = getMethod(javaMethod, className, clazz);
final Class annClazz = getAnnotationClass(annotName);
final java.lang.annotation.Annotation annotation = method.getAnnotation(annClazz);
final Object value = getValue(annotation, attribute);
return value;
}