Java 类com.intellij.psi.impl.source.Constants 实例源码

项目:tools-idea    文件:PsiBlockStatementImpl.java   
@Override
public ASTNode findChildByRole(int role) {
  LOG.assertTrue(ChildRole.isUnique(role));
  switch(role){
    default:
      return null;

    case ChildRole.BLOCK:
      return findChildByType(Constants.CODE_BLOCK);
  }
}
项目:tools-idea    文件:PsiBlockStatementImpl.java   
@Override
public int getChildRole(ASTNode child) {
  LOG.assertTrue(child.getTreeParent() == this);
  if (child.getElementType() == Constants.CODE_BLOCK) {
    return ChildRole.BLOCK;
  }
  else {
    return ChildRoleBase.NONE;
  }
}
项目:consulo-java    文件:PsiBlockStatementImpl.java   
@Override
public ASTNode findChildByRole(int role) {
  LOG.assertTrue(ChildRole.isUnique(role));
  switch(role){
    default:
      return null;

    case ChildRole.BLOCK:
      return findChildByType(Constants.CODE_BLOCK);
  }
}
项目:consulo-java    文件:PsiBlockStatementImpl.java   
@Override
public int getChildRole(ASTNode child) {
  LOG.assertTrue(child.getTreeParent() == this);
  if (child.getElementType() == Constants.CODE_BLOCK) {
    return ChildRole.BLOCK;
  }
  else {
    return ChildRoleBase.NONE;
  }
}
项目:tools-idea    文件:PsiBlockStatementImpl.java   
public PsiBlockStatementImpl() {
  super(Constants.BLOCK_STATEMENT);
}
项目:tools-idea    文件:PsiPostfixExpressionImpl.java   
public PsiPostfixExpressionImpl() {
  super(Constants.POSTFIX_EXPRESSION);
}
项目:tools-idea    文件:PsiEmptyStatementImpl.java   
public PsiEmptyStatementImpl() {
  super(Constants.EMPTY_STATEMENT);
}
项目:tools-idea    文件:PsiEmptyExpressionImpl.java   
public PsiEmptyExpressionImpl() {
  super(Constants.EMPTY_EXPRESSION);
}
项目:tools-idea    文件:FieldElement.java   
public FieldElement() {
  super(Constants.FIELD);
}
项目:tools-idea    文件:PsiIdentifierImpl.java   
public PsiIdentifierImpl(CharSequence text) {
  super(Constants.IDENTIFIER, text);
}
项目:consulo-java    文件:ClsClassImpl.java   
@NotNull
@Override
public List<PsiField> getOwnFields()
{
    return asList(getStub().getChildrenByType(Constants.FIELD_BIT_SET, PsiField.ARRAY_FACTORY));
}
项目:consulo-java    文件:ClsClassImpl.java   
@NotNull
@Override
public List<PsiMethod> getOwnMethods()
{
    return asList(getStub().getChildrenByType(Constants.METHOD_BIT_SET, PsiMethod.ARRAY_FACTORY));
}
项目:consulo-java    文件:PsiBlockStatementImpl.java   
public PsiBlockStatementImpl() {
  super(Constants.BLOCK_STATEMENT);
}
项目:consulo-java    文件:PsiPostfixExpressionImpl.java   
public PsiPostfixExpressionImpl() {
  super(Constants.POSTFIX_EXPRESSION);
}
项目:consulo-java    文件:PsiEmptyStatementImpl.java   
public PsiEmptyStatementImpl() {
  super(Constants.EMPTY_STATEMENT);
}
项目:consulo-java    文件:PsiEmptyExpressionImpl.java   
public PsiEmptyExpressionImpl() {
  super(Constants.EMPTY_EXPRESSION);
}
项目:consulo-java    文件:FieldElement.java   
public FieldElement() {
  super(Constants.FIELD);
}
项目:consulo-java    文件:PsiIdentifierImpl.java   
public PsiIdentifierImpl(CharSequence text) {
  super(Constants.IDENTIFIER, text);
}