Java 类com.intellij.lang.java.parser.JavaParser 实例源码

项目:consulo-java    文件:JavaElementType.java   
@Override
public ASTNode parseContents(final ASTNode chameleon)
{
    final PsiBuilder builder = JavaParserUtil.createBuilder(chameleon);
    JavaParser.INSTANCE.getStatementParser().parseCodeBlockDeep(builder, true);
    return builder.getTreeBuilt().getFirstChildNode();
}
项目:consulo-java    文件:JavaElementType.java   
@Override
public FlyweightCapableTreeStructure<LighterASTNode> parseContents(final LighterLazyParseableNode chameleon)
{
    final PsiBuilder builder = JavaParserUtil.createBuilder(chameleon);
    JavaParser.INSTANCE.getStatementParser().parseCodeBlockDeep(builder, true);
    return builder.getLightTree();
}
项目:intellij-ce-playground    文件:BaseExternalAnnotationsManager.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getDeclarationParser().parseAnnotation(builder);
}
项目:intellij-ce-playground    文件:PsiElementFactoryImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getStatementParser().parseCatchBlock(builder);
}
项目:intellij-ce-playground    文件:PsiJavaParserFacadeImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getDeclarationParser().parseAnnotation(builder);
}
项目:intellij-ce-playground    文件:PsiJavaParserFacadeImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getDeclarationParser().parseParameter(builder, true, false);
}
项目:intellij-ce-playground    文件:PsiJavaParserFacadeImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getDeclarationParser().parseResource(builder);
}
项目:intellij-ce-playground    文件:PsiJavaParserFacadeImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getReferenceParser().parseType(builder, ReferenceParser.EAT_LAST_DOT | ReferenceParser.ELLIPSIS |
                                                              ReferenceParser.WILDCARD | ReferenceParser.DISJUNCTIONS);
}
项目:intellij-ce-playground    文件:PsiJavaParserFacadeImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getReferenceParser().parseJavaCodeReference(builder, false, true, false, false);
}
项目:intellij-ce-playground    文件:PsiJavaParserFacadeImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getReferenceParser().parseJavaCodeReference(builder, false, true, false, true);
}
项目:intellij-ce-playground    文件:PsiJavaParserFacadeImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getReferenceParser().parseImportCodeReference(builder, true);
}
项目:intellij-ce-playground    文件:PsiJavaParserFacadeImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getReferenceParser().parseTypeParameter(builder);
}
项目:intellij-ce-playground    文件:PsiJavaParserFacadeImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getDeclarationParser().parse(builder, DeclarationParser.Context.CLASS);
}
项目:intellij-ce-playground    文件:PsiJavaParserFacadeImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getStatementParser().parseCodeBlockDeep(builder, true);
}
项目:intellij-ce-playground    文件:PsiJavaParserFacadeImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getStatementParser().parseStatement(builder);
}
项目:intellij-ce-playground    文件:PsiJavaParserFacadeImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getExpressionParser().parse(builder);
}
项目:intellij-ce-playground    文件:PsiJavaParserFacadeImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getDeclarationParser().parseEnumConstant(builder);
}
项目:intellij-ce-playground    文件:ClsParsingUtil.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getDeclarationParser().parseAnnotationValue(builder);
}
项目:intellij-ce-playground    文件:JavaElementType.java   
@Override
public ASTNode parseContents(final ASTNode chameleon) {
  final PsiBuilder builder = JavaParserUtil.createBuilder(chameleon);
  JavaParser.INSTANCE.getStatementParser().parseCodeBlockDeep(builder, true);
  return builder.getTreeBuilt().getFirstChildNode();
}
项目:intellij-ce-playground    文件:JavaElementType.java   
@Override
public FlyweightCapableTreeStructure<LighterASTNode> parseContents(final LighterLazyParseableNode chameleon) {
  final PsiBuilder builder = JavaParserUtil.createBuilder(chameleon);
  JavaParser.INSTANCE.getStatementParser().parseCodeBlockDeep(builder, true);
  return builder.getLightTree();
}
项目:intellij-ce-playground    文件:JavaElementType.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getStatementParser().parseStatements(builder);
}
项目:intellij-ce-playground    文件:JavaElementType.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getExpressionParser().parse(builder);
}
项目:intellij-ce-playground    文件:JavaElementType.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getReferenceParser().parseJavaCodeReference(builder, false, true, false, false);
}
项目:intellij-ce-playground    文件:JavaElementType.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getReferenceParser().parseType(builder, ReferenceParser.EAT_LAST_DOT | ReferenceParser.ELLIPSIS |
                                                              ReferenceParser.WILDCARD | ReferenceParser.DISJUNCTIONS);
}
项目:intellij-ce-playground    文件:JavaTreeGenerator.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getDeclarationParser().parseModifierList(builder);
}
项目:intellij-ce-playground    文件:JavaFileElementType.java   
private void doParse(final PsiBuilder builder) {
  final PsiBuilder.Marker root = builder.mark();
  JavaParser.INSTANCE.getFileParser().parse(builder);
  root.done(this);
}
项目:intellij-ce-playground    文件:ExpressionParserTest.java   
private void doParserTest(String text) {
  doParserTest(text, builder -> JavaParser.INSTANCE.getExpressionParser().parse(builder));
}
项目:intellij-ce-playground    文件:ReferenceParserTest.java   
private void doRefParserTest(String text, boolean incomplete) {
  doParserTest(text, builder -> JavaParser.INSTANCE.getReferenceParser().parseJavaCodeReference(builder, incomplete, false, false, false));
}
项目:intellij-ce-playground    文件:ReferenceParserTest.java   
private void doTypeParserTest(String text) {
  int flags = ReferenceParser.ELLIPSIS | ReferenceParser.DIAMONDS | ReferenceParser.DISJUNCTIONS;
  doParserTest(text, builder -> JavaParser.INSTANCE.getReferenceParser().parseType(builder, flags));
}
项目:intellij-ce-playground    文件:ReferenceParserTest.java   
private void doTypeParamsParserTest(String text) {
  doParserTest(text, builder -> JavaParser.INSTANCE.getReferenceParser().parseTypeParameters(builder));
}
项目:intellij-ce-playground    文件:FileParserTest.java   
private void doParserTest(String text) {
  doParserTest(text, builder -> JavaParser.INSTANCE.getFileParser().parse(builder));
}
项目:intellij-ce-playground    文件:DeclarationParserTest.java   
private void doParserTest(String text, boolean isAnnotation, boolean isEnum) {
  doParserTest(text, builder -> JavaParser.INSTANCE.getDeclarationParser().parseClassBodyWithBraces(builder, isAnnotation, isEnum));
}
项目:intellij-ce-playground    文件:StatementParserTest.java   
private void doBlockParserTest(String text) {
  doParserTest(text, builder -> JavaParser.INSTANCE.getStatementParser().parseCodeBlockDeep(builder, true));
}
项目:intellij-ce-playground    文件:StatementParserTest.java   
private void doParserTest(String text) {
  doParserTest(text, builder -> JavaParser.INSTANCE.getStatementParser().parseStatements(builder));
}
项目:intellij-ce-playground    文件:AnnotationParserTest.java   
private void doParserTest(String text) {
  doParserTest(text, builder -> JavaParser.INSTANCE.getDeclarationParser().parseAnnotations(builder));
}
项目:eddy    文件:Formatter.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getStatementParser().parseCodeBlockDeep(builder, true);
}
项目:tools-idea    文件:BaseExternalAnnotationsManager.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getDeclarationParser().parseAnnotation(builder);
}
项目:tools-idea    文件:PsiElementFactoryImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getStatementParser().parseCatchBlock(builder);
}
项目:tools-idea    文件:PsiJavaParserFacadeImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getDeclarationParser().parseAnnotation(builder);
}
项目:tools-idea    文件:PsiJavaParserFacadeImpl.java   
@Override
public void parse(final PsiBuilder builder) {
  JavaParser.INSTANCE.getDeclarationParser().parseParameter(builder, true, false);
}