public abstract class Breakpoint<P extends JavaBreakpointProperties> extends java.lang.Object implements FilteredRequestor, ClassPrepareRequestor, OverheadProducer
LocatableEventRequestor.EventProcessingException| Modifier and Type | Field and Description |
|---|---|
static Key<Breakpoint> |
DATA_KEY |
protected boolean |
myCachedVerifiedState |
protected Project |
myProject |
| Modifier | Constructor and Description |
|---|---|
protected |
Breakpoint(Project project,
XBreakpoint<P> xBreakpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInstanceFilter(long l) |
protected java.lang.String |
calculateEventClass(EvaluationContextImpl context,
com.sun.jdi.event.LocatableEvent event) |
protected void |
createOrWaitPrepare(DebugProcessImpl debugProcess,
SourcePosition classPosition) |
protected void |
createOrWaitPrepare(DebugProcessImpl debugProcess,
java.lang.String classToBeLoaded)
Associates breakpoint with class.
|
abstract void |
createRequest(DebugProcessImpl debugProcess)
Request for creating all needed JPDA requests in the specified VM
|
void |
customizeRenderer(SimpleColoredComponent renderer) |
boolean |
evaluateCondition(EvaluationContextImpl context,
com.sun.jdi.event.LocatableEvent event) |
protected void |
fireBreakpointChanged() |
abstract Key<? extends Breakpoint> |
getCategory() |
ClassFilter[] |
getClassExclusionFilters() |
ClassFilter[] |
getClassFilters() |
java.lang.String |
getClassName() |
protected TextWithImports |
getCondition() |
int |
getCountFilter() |
abstract java.lang.String |
getDisplayName() |
abstract PsiElement |
getEvaluationElement() |
abstract java.lang.String |
getEventMessage(com.sun.jdi.event.LocatableEvent event)
returns UI representation
|
abstract javax.swing.Icon |
getIcon() |
InstanceFilter[] |
getInstanceFilters() |
protected TextWithImports |
getLogMessage() |
java.lang.String |
getPackageName() |
Project |
getProject() |
protected P |
getProperties() |
abstract PsiClass |
getPsiClass() |
java.lang.String |
getShortClassName() |
java.lang.String |
getShortName() |
protected java.lang.String |
getStackTrace(com.sun.jdi.event.LocatableEvent event) |
java.lang.String |
getSuspendPolicy() |
protected com.sun.jdi.ObjectReference |
getThisObject(SuspendContextImpl context,
com.sun.jdi.event.LocatableEvent event) |
XBreakpoint<P> |
getXBreakpoint() |
boolean |
isClassFiltersEnabled() |
boolean |
isConditionEnabled() |
boolean |
isCountFilterEnabled() |
boolean |
isEnabled() |
boolean |
isInstanceFiltersEnabled() |
protected boolean |
isLogEnabled() |
protected boolean |
isLogExpressionEnabled() |
protected boolean |
isLogStack() |
boolean |
isObsolete() |
boolean |
isRemoveAfterHit() |
protected boolean |
isSuspend() |
abstract boolean |
isValid() |
void |
markVerified(boolean isVerified) |
abstract void |
processClassPrepare(DebugProcess debuggerProcess,
com.sun.jdi.ReferenceType referenceType)
Request for creating all needed JPDA requests in the specified VM
|
boolean |
processLocatableEvent(SuspendContextCommandImpl action,
com.sun.jdi.event.LocatableEvent event) |
void |
readExternal(Element parentNode) |
abstract void |
reload() |
void |
setClassExclusionFilters(ClassFilter[] filters) |
void |
setClassFilters(ClassFilter[] filters) |
void |
setClassFiltersEnabled(boolean enabled) |
void |
setCondition(TextWithImports condition) |
void |
setCountFilter(int filter) |
void |
setCountFilterEnabled(boolean enabled) |
void |
setEnabled(boolean enabled) |
void |
setInstanceFilters(InstanceFilter[] filters) |
void |
setInstanceFiltersEnabled(boolean enabled) |
void |
setLogEnabled(boolean logEnabled) |
void |
setRemoveAfterHit(boolean value) |
void |
setSuspendPolicy(java.lang.String policy) |
protected boolean |
shouldCreateRequest(DebugProcessImpl debugProcess) |
protected boolean |
shouldCreateRequest(DebugProcessImpl debugProcess,
boolean forPreparedClass) |
protected static boolean |
typeMatchesClassFilters(java.lang.String typeName,
ClassFilter[] includeFilters,
ClassFilter[] exludeFilters) |
void |
updateUI() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittrackpublic static final Key<Breakpoint> DATA_KEY
protected final Project myProject
protected boolean myCachedVerifiedState
protected Breakpoint(Project project, XBreakpoint<P> xBreakpoint)
public Project getProject()
protected P getProperties()
public final XBreakpoint<P> getXBreakpoint()
public abstract PsiClass getPsiClass()
public abstract void createRequest(DebugProcessImpl debugProcess)
debugProcess - the requesting processprotected final boolean shouldCreateRequest(DebugProcessImpl debugProcess, boolean forPreparedClass)
protected final boolean shouldCreateRequest(DebugProcessImpl debugProcess)
public abstract void processClassPrepare(DebugProcess debuggerProcess, com.sun.jdi.ReferenceType referenceType)
processClassPrepare in interface ClassPrepareRequestordebuggerProcess - the requesting processpublic void customizeRenderer(SimpleColoredComponent renderer)
customizeRenderer in interface OverheadProducerpublic boolean isObsolete()
isObsolete in interface OverheadProducerpublic abstract java.lang.String getDisplayName()
public java.lang.String getShortName()
public java.lang.String getClassName()
public void markVerified(boolean isVerified)
public boolean isRemoveAfterHit()
public void setRemoveAfterHit(boolean value)
public java.lang.String getShortClassName()
public java.lang.String getPackageName()
public abstract javax.swing.Icon getIcon()
public abstract void reload()
public abstract java.lang.String getEventMessage(com.sun.jdi.event.LocatableEvent event)
protected java.lang.String getStackTrace(com.sun.jdi.event.LocatableEvent event)
public abstract boolean isValid()
public abstract Key<? extends Breakpoint> getCategory()
protected void createOrWaitPrepare(DebugProcessImpl debugProcess, java.lang.String classToBeLoaded)
debugProcess - the requesting processprotected void createOrWaitPrepare(DebugProcessImpl debugProcess, SourcePosition classPosition)
protected com.sun.jdi.ObjectReference getThisObject(SuspendContextImpl context, com.sun.jdi.event.LocatableEvent event) throws EvaluateException
EvaluateExceptionpublic boolean processLocatableEvent(SuspendContextCommandImpl action, com.sun.jdi.event.LocatableEvent event) throws LocatableEventRequestor.EventProcessingException
processLocatableEvent in interface LocatableEventRequestorLocatableEventRequestor.EventProcessingExceptionpublic boolean evaluateCondition(EvaluationContextImpl context, com.sun.jdi.event.LocatableEvent event) throws EvaluateException
EvaluateExceptionprotected java.lang.String calculateEventClass(EvaluationContextImpl context, com.sun.jdi.event.LocatableEvent event) throws EvaluateException
EvaluateExceptionprotected static boolean typeMatchesClassFilters(java.lang.String typeName,
ClassFilter[] includeFilters,
ClassFilter[] exludeFilters)
public void updateUI()
public void readExternal(Element parentNode)
throws InvalidDataException
InvalidDataExceptionpublic abstract PsiElement getEvaluationElement()
protected TextWithImports getLogMessage()
protected TextWithImports getCondition()
public boolean isEnabled()
isEnabled in interface OverheadProducerpublic void setEnabled(boolean enabled)
setEnabled in interface OverheadProducerprotected boolean isLogEnabled()
public void setLogEnabled(boolean logEnabled)
protected boolean isLogStack()
protected boolean isLogExpressionEnabled()
public boolean isCountFilterEnabled()
isCountFilterEnabled in interface FilteredRequestorpublic void setCountFilterEnabled(boolean enabled)
public int getCountFilter()
getCountFilter in interface FilteredRequestorpublic void setCountFilter(int filter)
public boolean isClassFiltersEnabled()
isClassFiltersEnabled in interface FilteredRequestorpublic void setClassFiltersEnabled(boolean enabled)
public ClassFilter[] getClassFilters()
getClassFilters in interface FilteredRequestorpublic void setClassFilters(ClassFilter[] filters)
public ClassFilter[] getClassExclusionFilters()
getClassExclusionFilters in interface FilteredRequestorpublic void setClassExclusionFilters(ClassFilter[] filters)
public boolean isInstanceFiltersEnabled()
isInstanceFiltersEnabled in interface FilteredRequestorpublic void setInstanceFiltersEnabled(boolean enabled)
public InstanceFilter[] getInstanceFilters()
getInstanceFilters in interface FilteredRequestorpublic void setInstanceFilters(InstanceFilter[] filters)
protected boolean isSuspend()
public java.lang.String getSuspendPolicy()
getSuspendPolicy in interface LocatableEventRequestorgetSuspendPolicy in interface FilteredRequestorpublic void setSuspendPolicy(java.lang.String policy)
public boolean isConditionEnabled()
isConditionEnabled in interface FilteredRequestorpublic void setCondition(TextWithImports condition)
public void addInstanceFilter(long l)
protected void fireBreakpointChanged()