|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.binding.model.ClassItemWrapper
org.jibx.custom.classes.ClassItemSourceWrapper
public class ClassItemSourceWrapper
Wrapper for class field or method item with added source information. This wraps the basic class handling implementation with added support for retrieving information from source files.
Field Summary | |
---|---|
private boolean |
m_checkedSource
|
private Member |
m_itemSource
|
Constructor Summary | |
---|---|
ClassItemSourceWrapper(IClass clas,
ClassItem item)
Constructor |
Method Summary | |
---|---|
private static java.lang.String |
docText(java.lang.String text)
Return JavaDoc text only if non-empty. |
java.lang.String |
getExceptionJavaDoc(int index)
Get method throws JavaDoc description, if available. |
private Member |
getItemSource()
Internal method to get the source code information for this item. |
java.lang.String |
getJavaDoc()
Get item JavaDoc description, if available. |
java.lang.String |
getParameterJavaDoc(int index)
Get method parameter JavaDoc description, if available. |
java.lang.String |
getParameterName(int index)
Get method parameter name, if available. |
java.lang.String |
getReturnJavaDoc()
Get return JavaDoc description for method, if available. |
private boolean |
matchSignature(JavaMethod method)
Check for source method signature match. |
Methods inherited from class org.jibx.binding.model.ClassItemWrapper |
---|
getAccessFlags, getArgumentCount, getArgumentType, getClassItem, getContainingClass, getExceptions, getGenericsSignature, getName, getOwningClass, getSignature, getTypeName, isInitializer, isMethod |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean m_checkedSource
private Member m_itemSource
Constructor Detail |
---|
ClassItemSourceWrapper(IClass clas, ClassItem item)
clas
- item
- Method Detail |
---|
private boolean matchSignature(JavaMethod method)
method
-
true
if match to this method, false
if notprivate Member getItemSource()
private static java.lang.String docText(java.lang.String text)
text
- raw JavaDoc text
null
public java.lang.String getJavaDoc()
IClassItem
getJavaDoc
in interface IClassItem
getJavaDoc
in class ClassItemWrapper
null
if not available)public java.lang.String getReturnJavaDoc()
IClassItem
getReturnJavaDoc
in interface IClassItem
getReturnJavaDoc
in class ClassItemWrapper
null
if not available)public java.lang.String getParameterJavaDoc(int index)
IClassItem
getParameterJavaDoc
in interface IClassItem
getParameterJavaDoc
in class ClassItemWrapper
index
- parameter number
null
if not available)public java.lang.String getParameterName(int index)
IClassItem
getParameterName
in interface IClassItem
getParameterName
in class ClassItemWrapper
index
- parameter number
null
if not available)public java.lang.String getExceptionJavaDoc(int index)
IClassItem
getExceptionJavaDoc
in interface IClassItem
getExceptionJavaDoc
in class ClassItemWrapper
index
- exception index (into array returned by
IClassItem.getExceptions()
null
if not available)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |