當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。