本文整理匯總了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();
}
示例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();
}
示例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;
}
示例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();
}
示例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);
}
示例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);
}
示例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;
}
示例8: isKeyword
import org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil; //導入依賴的package包/類
public boolean isKeyword(String name, Project project) {
return RenameUtil.isKeyword(name);
}
示例9: isIdentifier
import org.intellij.plugins.relaxNG.compact.psi.util.RenameUtil; //導入依賴的package包/類
public boolean isIdentifier(String name, Project project) {
return RenameUtil.isIdentifier(name);
}
示例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;
}
示例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();
}
示例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;
}