Class ClassInfo
java.lang.Object
org.eclipse.birt.report.model.api.scripts.ClassInfo
- All Implemented Interfaces:
IClassInfo,ILocalizableInfo
Represents the script object definition. This definition defines one
constructor, several members and methods. It also includes the name, display
name ID, and tool tip ID.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IMethodInfocreateConstructorInfo(Constructor classMethod) protected IMemberInfocreateMemberInfo(Field classField) protected IMethodInfocreateMethodInfo(Method classMethod) Returns the constructor definition.Returns the display name if the resource key of display name is available.Returns the resource key for display name.Returns the member definition given method name.Returns the list of member definitions.Get the method definition given the method name.Returns the method definition list.getName()Returns the definition name.Returns the tool tip if the resource key of tool tip is available.Returns the resource key for tool tip.booleanisNative()Returns whether a class object is native.
-
Constructor Details
-
ClassInfo
- Parameters:
clazz-
-
-
Method Details
-
createMemberInfo
- Parameters:
classField-- Returns:
-
createConstructorInfo
- Parameters:
classMethod-- Returns:
-
createMethodInfo
- Parameters:
classMethod-- Returns:
-
getMethods
Returns the method definition list. For methods that have the same name, only return one method.- Specified by:
getMethodsin interfaceIClassInfo- Returns:
- a list of method definitions
-
getMethod
Get the method definition given the method name.- Specified by:
getMethodin interfaceIClassInfo- Parameters:
name- the name of the method to get- Returns:
- the definition of the method to get
-
getMembers
Returns the list of member definitions.- Specified by:
getMembersin interfaceIClassInfo- Returns:
- the list of member definitions
-
getMember
Returns the member definition given method name.- Specified by:
getMemberin interfaceIClassInfo- Parameters:
name- name of the member to get- Returns:
- the member definition to get
-
getConstructor
Returns the constructor definition.- Specified by:
getConstructorin interfaceIClassInfo- Returns:
- the constructor definition
-
isNative
public boolean isNative()Returns whether a class object is native.- Specified by:
isNativein interfaceIClassInfo- Returns:
trueif an object of this class is native, otherwisefalse
-
getDisplayNameKey
Description copied from interface:ILocalizableInfoReturns the resource key for display name.- Specified by:
getDisplayNameKeyin interfaceILocalizableInfo- Returns:
- the resource key for display name
-
getName
Description copied from interface:ILocalizableInfoReturns the definition name.- Specified by:
getNamein interfaceILocalizableInfo- Returns:
- the name of this definition
-
getToolTipKey
Description copied from interface:ILocalizableInfoReturns the resource key for tool tip.- Specified by:
getToolTipKeyin interfaceILocalizableInfo- Returns:
- the resource key for tool tip
-
getDisplayName
Description copied from interface:ILocalizableInfoReturns the display name if the resource key of display name is available. Otherwise, return empty string.- Specified by:
getDisplayNamein interfaceILocalizableInfo- Returns:
- the display name
-
getToolTip
Description copied from interface:ILocalizableInfoReturns the tool tip if the resource key of tool tip is available. Otherwise, return empty string.- Specified by:
getToolTipin interfaceILocalizableInfo- Returns:
- the tool tip
-