本文整理汇总了Java中com.intellij.psi.impl.DebugUtil.CHECK_INSIDE_ATOMIC_ACTION_ENABLED属性的典型用法代码示例。如果您正苦于以下问题:Java DebugUtil.CHECK_INSIDE_ATOMIC_ACTION_ENABLED属性的具体用法?Java DebugUtil.CHECK_INSIDE_ATOMIC_ACTION_ENABLED怎么用?Java DebugUtil.CHECK_INSIDE_ATOMIC_ACTION_ENABLED使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.intellij.psi.impl.DebugUtil
的用法示例。
在下文中一共展示了DebugUtil.CHECK_INSIDE_ATOMIC_ACTION_ENABLED属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findChildByType
@Override
public ASTNode findChildByType(IElementType type) {
if (DebugUtil.CHECK_INSIDE_ATOMIC_ACTION_ENABLED){
ApplicationManager.getApplication().assertReadAccessAllowed();
}
for(ASTNode element = getFirstChildNode(); element != null; element = element.getTreeNext()){
if (element.getElementType() == type) return element;
}
return null;
}
示例2: findChildBackward
@Nullable
public static ASTNode findChildBackward(ASTNode parent, IElementType type) {
if (DebugUtil.CHECK_INSIDE_ATOMIC_ACTION_ENABLED) {
ApplicationManager.getApplication().assertReadAccessAllowed();
}
for (ASTNode element = parent.getLastChildNode(); element != null; element = element.getTreePrev()) {
if (element.getElementType() == type) return element;
}
return null;
}
示例3: getName
@Override
public String getName() {
if (DebugUtil.CHECK_INSIDE_ATOMIC_ACTION_ENABLED) {
ApplicationManager.getApplication().assertReadAccessAllowed();
}
if (myQualifiedName.isEmpty()) return null;
int index = myQualifiedName.lastIndexOf('.');
if (index <= 0) {
return myQualifiedName;
}
else {
return myQualifiedName.substring(index + 1);
}
}
示例4: getName
@RequiredReadAction
@Override
public String getName() {
if (DebugUtil.CHECK_INSIDE_ATOMIC_ACTION_ENABLED) {
ApplicationManager.getApplication().assertReadAccessAllowed();
}
if (myQualifiedName.isEmpty()) return null;
int index = myQualifiedName.lastIndexOf('.');
if (index < 0) {
return myQualifiedName;
}
else {
return myQualifiedName.substring(index + 1);
}
}