Class ClassInfo
- java.lang.Object
-
- org.eclipse.birt.report.model.api.scripts.ClassInfo
-
- All Implemented Interfaces:
IClassInfo
,ILocalizableInfo
public class ClassInfo extends java.lang.Object implements IClassInfo
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 Constructor Description ClassInfo(java.lang.Class clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IMethodInfo
createConstructorInfo(java.lang.reflect.Constructor classMethod)
protected IMemberInfo
createMemberInfo(java.lang.reflect.Field classField)
protected IMethodInfo
createMethodInfo(java.lang.reflect.Method classMethod)
IMethodInfo
getConstructor()
Returns the constructor definition.java.lang.String
getDisplayName()
Returns the display name if the resource key of display name is available.java.lang.String
getDisplayNameKey()
Returns the resource key for display name.IMemberInfo
getMember(java.lang.String name)
Returns the member definition given method name.java.util.List
getMembers()
Returns the list of member definitions.IMethodInfo
getMethod(java.lang.String name)
Get the method definition given the method name.java.util.List
getMethods()
Returns the method definition list.java.lang.String
getName()
Returns the definition name.java.lang.String
getToolTip()
Returns the tool tip if the resource key of tool tip is available.java.lang.String
getToolTipKey()
Returns the resource key for tool tip.boolean
isNative()
Returns whether a class object is native.
-
-
-
Method Detail
-
createMemberInfo
protected IMemberInfo createMemberInfo(java.lang.reflect.Field classField)
- Parameters:
classField
-- Returns:
-
createConstructorInfo
protected IMethodInfo createConstructorInfo(java.lang.reflect.Constructor classMethod)
- Parameters:
classMethod
-- Returns:
-
createMethodInfo
protected IMethodInfo createMethodInfo(java.lang.reflect.Method classMethod)
- Parameters:
classMethod
-- Returns:
-
getMethods
public java.util.List getMethods()
Returns the method definition list. For methods that have the same name, only return one method.- Specified by:
getMethods
in interfaceIClassInfo
- Returns:
- a list of method definitions
-
getMethod
public IMethodInfo getMethod(java.lang.String name)
Get the method definition given the method name.- Specified by:
getMethod
in interfaceIClassInfo
- Parameters:
name
- the name of the method to get- Returns:
- the definition of the method to get
-
getMembers
public java.util.List getMembers()
Returns the list of member definitions.- Specified by:
getMembers
in interfaceIClassInfo
- Returns:
- the list of member definitions
-
getMember
public IMemberInfo getMember(java.lang.String name)
Returns the member definition given method name.- Specified by:
getMember
in interfaceIClassInfo
- Parameters:
name
- name of the member to get- Returns:
- the member definition to get
-
getConstructor
public IMethodInfo getConstructor()
Returns the constructor definition.- Specified by:
getConstructor
in interfaceIClassInfo
- Returns:
- the constructor definition
-
isNative
public boolean isNative()
Returns whether a class object is native.- Specified by:
isNative
in interfaceIClassInfo
- Returns:
true
if an object of this class is native, otherwisefalse
-
getDisplayNameKey
public java.lang.String getDisplayNameKey()
Description copied from interface:ILocalizableInfo
Returns the resource key for display name.- Specified by:
getDisplayNameKey
in interfaceILocalizableInfo
- Returns:
- the resource key for display name
-
getName
public java.lang.String getName()
Description copied from interface:ILocalizableInfo
Returns the definition name.- Specified by:
getName
in interfaceILocalizableInfo
- Returns:
- the name of this definition
-
getToolTipKey
public java.lang.String getToolTipKey()
Description copied from interface:ILocalizableInfo
Returns the resource key for tool tip.- Specified by:
getToolTipKey
in interfaceILocalizableInfo
- Returns:
- the resource key for tool tip
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from interface:ILocalizableInfo
Returns the display name if the resource key of display name is available. Otherwise, return empty string.- Specified by:
getDisplayName
in interfaceILocalizableInfo
- Returns:
- the display name
-
getToolTip
public java.lang.String getToolTip()
Description copied from interface:ILocalizableInfo
Returns the tool tip if the resource key of tool tip is available. Otherwise, return empty string.- Specified by:
getToolTip
in interfaceILocalizableInfo
- Returns:
- the tool tip
-
-