IDebugExpressionView.ViewInfo Class

com.bea.ide.debug
IDebugExpressionView.ViewInfo Class

public static class IDebugExpressionView.ViewInfo

    extends Object
    implements Comparable, Serializable

Contains data about views as specified in extension.xml. To get ViewInfos for a particular type, use DebugSvc.I.getViewInfosForType(IDebugExpression, boolean)


Hierarchy
Object
  IDebugExpressionView.ViewInfo
All Implemented Interfaces

Comparable, Serializable
Enclosing interface

IDebugExpressionView

Constructor Summary

IDebugExpressionView.ViewInfo(String typeRegEx, String className, int priority, String description, boolean matchesNulls)

Constructor to create a ViewInfo.
 

Method Summary

public int
compareTo(Object o)
public String
getDescription()
Gets a short description of the view.
public Class
getViewClass()
Gets the class that implements the current ExpressionView.
public boolean
isDefault()
Returns whether this ExpressionView can display any type.
public boolean
matches(String type)
Determines if the current ExpressionView can display the type passed in.
public boolean
matchesNulls()
Returns whether this view can display a null value.
public String
toString()
Same as getDescription()
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
   
Methods from interface java.lang.Comparable
compareTo
 

Constructor Detail

IDebugExpressionView.ViewInfo

public IDebugExpressionView.ViewInfo(String typeRegEx, 
                                     String className, 
                                     int priority, 
                                     String description, 
                                     boolean matchesNulls)
Constructor to create a ViewInfo.
 

Method Detail

compareTo(Object) Method

public int compareTo(Object o)

getDescription() Method

public String getDescription()
Gets a short description of the view.

Returns

a short description of the view, as specified in extension.xml

getViewClass() Method

public Class getViewClass()
throws ClassNotFoundException
Gets the class that implements the current ExpressionView. This will load the class if necessary.

Returns

the Class that implements the ExpressionView.

Exceptions

ClassNotFoundException

isDefault() Method

public boolean isDefault()
Returns whether this ExpressionView can display any type.

Returns

true if the view can be applied to all types

matches(String) Method

public boolean matches(String type)
Determines if the current ExpressionView can display the type passed in.

Parameters

type
the name of the type to be tested.

Returns

true if the view could be used to display the given type

matchesNulls() Method

public boolean matchesNulls()
Returns whether this view can display a null value.

Returns

true if the view can be applied to values that are currently null, but are declared to be of a matching type

toString() Method

public String toString()
Same as getDescription()

Overrides
Object.toString()

Returns

a string description of the Object.