public abstract class ValueDescriptorImpl extends NodeDescriptorImpl implements ValueDescriptor
Modifier and Type | Field and Description |
---|---|
protected boolean |
myIsNew |
protected Project |
myProject |
protected EvaluationContextImpl |
myStoredEvaluationContext |
LOG, myIsExpanded, myIsSelected, myIsSynthetic, myIsVisible, UNKNOWN_VALUE_MESSAGE
Modifier | Constructor and Description |
---|---|
protected |
ValueDescriptorImpl(Project project) |
protected |
ValueDescriptorImpl(Project project,
com.sun.jdi.Value value) |
getEvaluateException, getMarkupMap, getName, getUserData, putUserData, setFailed, setLabel, toString, updateRepresentation, updateRepresentationNoNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getType
getName
getUserData, putUserData
protected final Project myProject
protected EvaluationContextImpl myStoredEvaluationContext
protected boolean myIsNew
protected ValueDescriptorImpl(Project project, com.sun.jdi.Value value)
protected ValueDescriptorImpl(Project project)
public boolean isArray()
isArray
in interface ValueDescriptor
public boolean isDirty()
public boolean isLvalue()
isLvalue
in interface ValueDescriptor
public boolean isNull()
isNull
in interface ValueDescriptor
public boolean isString()
isString
in interface ValueDescriptor
public boolean isPrimitive()
isPrimitive
in interface ValueDescriptor
public boolean isEnumConstant()
public boolean isValueValid()
public boolean isShowIdLabel()
public void setShowIdLabel(boolean showIdLabel)
public boolean isValueReady()
public com.sun.jdi.Value getValue()
getValue
in interface ValueDescriptor
public boolean isExpandable()
isExpandable
in class NodeDescriptorImpl
public abstract com.sun.jdi.Value calcValue(EvaluationContextImpl evaluationContext) throws EvaluateException
EvaluateException
public final void setContext(EvaluationContextImpl evaluationContext)
setContext
in class NodeDescriptorImpl
protected boolean isPrintExceptionToConsole()
protected static com.sun.jdi.Value invokeExceptionGetStackTrace(com.sun.jdi.ObjectReference exceptionObj, EvaluationContextImpl evaluationContext) throws EvaluateException
EvaluateException
public void setAncestor(NodeDescriptor oldDescriptor)
setAncestor
in interface NodeDescriptor
setAncestor
in class NodeDescriptorImpl
protected void setLvalue(boolean value)
protected java.lang.String calcRepresentation(EvaluationContextImpl context, DescriptorLabelListener labelListener)
calcRepresentation
in class NodeDescriptorImpl
public java.lang.String getLabel()
getLabel
in interface NodeDescriptor
getLabel
in class NodeDescriptorImpl
public ValueDescriptorImpl getFullValueDescriptor()
public void setValueLabel(java.lang.String label)
setValueLabel
in interface ValueDescriptor
public java.lang.String setValueLabelFailed(EvaluateException e)
setValueLabelFailed
in interface ValueDescriptor
public javax.swing.Icon setValueIcon(javax.swing.Icon icon)
setValueIcon
in interface ValueDescriptor
public javax.swing.Icon getValueIcon()
public java.lang.String calcValueName()
public java.lang.String getDeclaredType()
public void displayAs(NodeDescriptor descriptor)
displayAs
in interface NodeDescriptor
displayAs
in class NodeDescriptorImpl
public Renderer getLastRenderer()
public Renderer getLastLabelRenderer()
public NodeRenderer getChildrenRenderer(DebugProcessImpl debugProcess)
public NodeRenderer getRenderer(DebugProcessImpl debugProcess)
public void setRenderer(NodeRenderer renderer)
public PsiElement getTreeEvaluation(JavaValue value, DebuggerContextImpl context) throws EvaluateException
EvaluateException
public abstract PsiExpression getDescriptorEvaluation(DebuggerContext context) throws EvaluateException
getDescriptorEvaluation
in interface ValueDescriptor
EvaluateException
public static java.lang.String getIdLabel(com.sun.jdi.ObjectReference objRef)
public boolean canSetValue()
public XValueModifier getModifier(JavaValue value)
public java.lang.String getIdLabel()
public java.lang.String getValueLabel()
public java.lang.String getValueText()
public void clear()
clear
in class NodeDescriptorImpl
public ValueMarkup getMarkup(DebugProcess debugProcess)
getMarkup
in interface ValueDescriptor
public void setMarkup(DebugProcess debugProcess, ValueMarkup markup)
setMarkup
in interface ValueDescriptor
public boolean canMark()
public Project getProject()
public java.lang.String getDeclaredTypeLabel()
public EvaluationContextImpl getStoredEvaluationContext()