Package org.jibx.util
Interface IClassItem
-
- All Known Implementing Classes:
ClassItemSourceWrapper,ClassItemWrapper
public interface IClassItemInterface for field or method information. Provides the information needed for access to the item.- Version:
- 1.0
- Author:
- Dennis M. Sosnoski
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAccessFlags()Get access flags.intgetArgumentCount()Get number of arguments for method.java.lang.StringgetArgumentType(int index)Get argument type as fully qualified class name.java.lang.StringgetExceptionJavaDoc(int index)Get method throws JavaDoc description, if available.java.lang.String[]getExceptions()Get names of exceptions thrown by method.java.lang.StringgetGenericsSignature()Get the generics signature information for item.java.lang.StringgetJavaDoc()Get item JavaDoc description, if available.java.lang.StringgetName()Get item name.IClassgetOwningClass()Get owning class information.java.lang.StringgetParameterJavaDoc(int index)Get method parameter JavaDoc description, if available.java.lang.StringgetParameterName(int index)Get method parameter name, if available.java.lang.StringgetReturnJavaDoc()Get return JavaDoc description for method, if available.java.lang.StringgetSignature()Get field or method signature.java.lang.StringgetTypeName()Get item type as fully qualified class name.booleanisInitializer()Check if item is an initializer.booleanisMethod()Check if item is a method.
-
-
-
Method Detail
-
getOwningClass
IClass getOwningClass()
Get owning class information.- Returns:
- owning class information
-
getName
java.lang.String getName()
Get item name.- Returns:
- item name
-
getJavaDoc
java.lang.String getJavaDoc()
Get item JavaDoc description, if available.- Returns:
- non-empty JavaDoc text (
nullif not available)
-
getTypeName
java.lang.String getTypeName()
Get item type as fully qualified class name.- Returns:
- item type name
-
getReturnJavaDoc
java.lang.String getReturnJavaDoc()
Get return JavaDoc description for method, if available.- Returns:
- non-empty JavaDoc text (
nullif not available)
-
getArgumentCount
int getArgumentCount()
Get number of arguments for method.- Returns:
- argument count for method, or
-1if not a method
-
getArgumentType
java.lang.String getArgumentType(int index)
Get argument type as fully qualified class name. This method will throw a runtime exception if called on a field.- Parameters:
index- argument number- Returns:
- argument type name
-
getParameterName
java.lang.String getParameterName(int index)
Get method parameter name, if available. This method will throw a runtime exception if called on a field.- Parameters:
index- parameter number- Returns:
- parameter name (
nullif not available)
-
getParameterJavaDoc
java.lang.String getParameterJavaDoc(int index)
Get method parameter JavaDoc description, if available. This method will throw a runtime exception if called on a field.- Parameters:
index- parameter number- Returns:
- non-empty JavaDoc text (
nullif not available)
-
getAccessFlags
int getAccessFlags()
Get access flags.- Returns:
- flags for access type of field or method
-
getSignature
java.lang.String getSignature()
Get field or method signature.- Returns:
- encoded method signature
-
isMethod
boolean isMethod()
Check if item is a method.- Returns:
trueif a method,falseif a field
-
isInitializer
boolean isInitializer()
Check if item is an initializer.- Returns:
trueif an initializer,falseif a field or normal method
-
getExceptions
java.lang.String[] getExceptions()
Get names of exceptions thrown by method.- Returns:
- array of exceptions thrown by method, or
nullif a field
-
getExceptionJavaDoc
java.lang.String getExceptionJavaDoc(int index)
Get method throws JavaDoc description, if available. This method will throw a runtime exception if called on a field.- Parameters:
index- exception index (into array returned bygetExceptions()- Returns:
- non-empty JavaDoc text (
nullif not available)
-
getGenericsSignature
java.lang.String getGenericsSignature()
Get the generics signature information for item.- Returns:
- generics signature (
nullif none)
-
-