本文整理汇总了Java中com.intellij.debugger.engine.DebuggerUtils.isPrimitiveType方法的典型用法代码示例。如果您正苦于以下问题:Java DebuggerUtils.isPrimitiveType方法的具体用法?Java DebuggerUtils.isPrimitiveType怎么用?Java DebuggerUtils.isPrimitiveType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.debugger.engine.DebuggerUtils
的用法示例。
在下文中一共展示了DebuggerUtils.isPrimitiveType方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isPrimitive
import com.intellij.debugger.engine.DebuggerUtils; //导入方法依赖的package包/类
@Override
public boolean isPrimitive()
{
if(myIsPrimitive == null)
{
final Value value = getValue();
if(value != null)
{
myIsPrimitive = super.isPrimitive();
}
else
{
myIsPrimitive = DebuggerUtils.isPrimitiveType(myField.typeName());
}
}
return myIsPrimitive.booleanValue();
}
示例2: calcValue
import com.intellij.debugger.engine.DebuggerUtils; //导入方法依赖的package包/类
@Override
public Value calcValue(EvaluationContextImpl evaluationContext) throws EvaluateException {
boolean isVisible = myFrameProxy.isLocalVariableVisible(getLocalVariable());
if (isVisible) {
final String typeName = getLocalVariable().typeName();
myTypeName = typeName;
myIsPrimitive = DebuggerUtils.isPrimitiveType(typeName);
return myFrameProxy.getValue(getLocalVariable());
}
return null;
}
示例3: isPrimitive
import com.intellij.debugger.engine.DebuggerUtils; //导入方法依赖的package包/类
@Override
public boolean isPrimitive() {
if (myIsPrimitive == null) {
final Value value = getValue();
if (value != null) {
myIsPrimitive = super.isPrimitive();
}
else {
myIsPrimitive = DebuggerUtils.isPrimitiveType(myField.typeName());
}
}
return myIsPrimitive.booleanValue();
}
示例4: calcValue
import com.intellij.debugger.engine.DebuggerUtils; //导入方法依赖的package包/类
public Value calcValue(EvaluationContextImpl evaluationContext) throws EvaluateException {
myIsVisible = myFrameProxy.isLocalVariableVisible(getLocalVariable());
if (myIsVisible) {
final String typeName = getLocalVariable().typeName();
myTypeName = typeName;
myIsPrimitive = DebuggerUtils.isPrimitiveType(typeName);
return myFrameProxy.getValue(getLocalVariable());
}
return null;
}
示例5: isPrimitive
import com.intellij.debugger.engine.DebuggerUtils; //导入方法依赖的package包/类
public boolean isPrimitive() {
if (myIsPrimitive == null) {
final Value value = getValue();
if (value != null) {
myIsPrimitive = super.isPrimitive();
}
else {
myIsPrimitive = DebuggerUtils.isPrimitiveType(myField.typeName()) ? Boolean.TRUE : Boolean.FALSE;
}
}
return myIsPrimitive.booleanValue();
}
示例6: calcValue
import com.intellij.debugger.engine.DebuggerUtils; //导入方法依赖的package包/类
@Override
public Value calcValue(EvaluationContextImpl evaluationContext) throws EvaluateException
{
boolean isVisible = myFrameProxy.isLocalVariableVisible(getLocalVariable());
if(isVisible)
{
final String typeName = getLocalVariable().typeName();
myTypeName = typeName;
myIsPrimitive = DebuggerUtils.isPrimitiveType(typeName);
return myFrameProxy.getValue(getLocalVariable());
}
return null;
}
示例7: suggestMarkup
import com.intellij.debugger.engine.DebuggerUtils; //导入方法依赖的package包/类
private static Map<ObjectReference, ValueMarkup> suggestMarkup(ObjectReference objRef) {
final Map<ObjectReference, ValueMarkup> result = new HashMap<ObjectReference, ValueMarkup>();
for (ObjectReference ref : getReferringObjects(objRef)) {
if (!(ref instanceof ClassObjectReference)) {
// consider references from statisc fields only
continue;
}
final ReferenceType refType = ((ClassObjectReference)ref).reflectedType();
if (!refType.isAbstract()) {
continue;
}
for (Field field : refType.visibleFields()) {
if (!(field.isStatic() && field.isFinal())) {
continue;
}
if (DebuggerUtils.isPrimitiveType(field.typeName())) {
continue;
}
final Value fieldValue = refType.getValue(field);
if (!(fieldValue instanceof ObjectReference)) {
continue;
}
final ValueMarkup markup = result.get((ObjectReference)fieldValue);
final String fieldName = field.name();
final Color autoMarkupColor = getAutoMarkupColor();
if (markup == null) {
result.put((ObjectReference)fieldValue, new ValueMarkup(fieldName, autoMarkupColor, createMarkupTooltipText(null, refType, fieldName)));
}
else {
final String currentText = markup.getText();
if (!currentText.contains(fieldName)) {
final String currentTooltip = markup.getToolTipText();
final String tooltip = createMarkupTooltipText(currentTooltip, refType, fieldName);
result.put((ObjectReference)fieldValue, new ValueMarkup(currentText + ", " + fieldName, autoMarkupColor, tooltip));
}
}
}
}
return result;
}