当前位置: 首页>>代码示例>>Java>>正文


Java RenameUtil类代码示例

本文整理汇总了Java中org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil的典型用法代码示例。如果您正苦于以下问题:Java RenameUtil类的具体用法?Java RenameUtil怎么用?Java RenameUtil使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


RenameUtil类属于org.intellij.plugins.relaxNG.compact.psi.util包,在下文中一共展示了RenameUtil类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: handleElementRename

import org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil; //导入依赖的package包/类
@Override
public PsiElement handleElementRename(String newElementName) throws IncorrectOperationException {
  final ASTNode node = getNode();
  final ASTNode child = RenameUtil.createPrefixedNode(getManager(), newElementName, getLocalPart());
  node.getTreeParent().replaceChild(node, child);
  return child.getPsi();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:RncNameImpl.java

示例2: handleElementRename

import org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil; //导入依赖的package包/类
@Override
public PsiElement handleElementRename(String newElementName) throws IncorrectOperationException {
  final ASTNode newNode = RenameUtil.createIdentifierNode(getElement().getManager(), newElementName);

  final ASTNode nameNode = findNameNode();
  nameNode.getTreeParent().replaceChild(nameNode, newNode);
  return getElement();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:PatternReference.java

示例3: setName

import org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil; //导入依赖的package包/类
@Override
public PsiElement setName(@NonNls @NotNull String name) throws IncorrectOperationException {
  final ASTNode node = findIdentifierNode();
  if (node == null) return this;
  node.getTreeParent().replaceChild(node, RenameUtil.createIdentifierNode(getManager(), name));
  return this;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:RncDeclImpl.java

示例4: handleElementRename

import org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil; //导入依赖的package包/类
public PsiElement handleElementRename(String newElementName) throws IncorrectOperationException {
  final ASTNode newNode = RenameUtil.createIdentifierNode(getElement().getManager(), newElementName);

  final ASTNode nameNode = findNameNode();
  nameNode.getTreeParent().replaceChild(nameNode, newNode);
  return getElement();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:8,代码来源:PatternReference.java

示例5: isKeyword

import org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil; //导入依赖的package包/类
@Override
public boolean isKeyword(@NotNull String name, Project project) {
  return RenameUtil.isKeyword(name);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:RngCompactLanguage.java

示例6: isIdentifier

import org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil; //导入依赖的package包/类
@Override
public boolean isIdentifier(@NotNull String name, Project project) {
  return RenameUtil.isIdentifier(name);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:RngCompactLanguage.java

示例7: setName

import org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil; //导入依赖的package包/类
@Override
public PsiElement setName(@NonNls @NotNull String name) throws IncorrectOperationException {
  final ASTNode node = getNameNode();
  node.getTreeParent().replaceChild(node, RenameUtil.createIdentifierNode(getManager(), name));
  return this;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:RncDefineImpl.java

示例8: isKeyword

import org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil; //导入依赖的package包/类
public boolean isKeyword(String name, Project project) {
  return RenameUtil.isKeyword(name);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:RngCompactLanguage.java

示例9: isIdentifier

import org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil; //导入依赖的package包/类
public boolean isIdentifier(String name, Project project) {
  return RenameUtil.isIdentifier(name);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:RngCompactLanguage.java

示例10: setName

import org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil; //导入依赖的package包/类
public PsiElement setName(@NonNls @NotNull String name) throws IncorrectOperationException {
  final ASTNode node = getNameNode();
  node.getTreeParent().replaceChild(node, RenameUtil.createIdentifierNode(getManager(), name));
  return this;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:6,代码来源:RncDefineImpl.java

示例11: handleElementRename

import org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil; //导入依赖的package包/类
public PsiElement handleElementRename(String newElementName) throws IncorrectOperationException {
  final ASTNode node = getNode();
  final ASTNode child = RenameUtil.createPrefixedNode(getManager(), newElementName, getLocalPart());
  node.getTreeParent().replaceChild(node, child);
  return child.getPsi();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:7,代码来源:RncNameImpl.java

示例12: setName

import org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil; //导入依赖的package包/类
public PsiElement setName(@NonNls @NotNull String name) throws IncorrectOperationException {
  final ASTNode node = findIdentifierNode();
  if (node == null) return this;
  node.getTreeParent().replaceChild(node, RenameUtil.createIdentifierNode(getManager(), name));
  return this;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:7,代码来源:RncDeclImpl.java


注:本文中的org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。