org.eclipse.jdt.internal.compiler.parser.Parser.pushOnAstStack()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(7.6k)|赞(0)|评价(0)|浏览(182)

本文整理了Java中org.eclipse.jdt.internal.compiler.parser.Parser.pushOnAstStack()方法的一些代码示例,展示了Parser.pushOnAstStack()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parser.pushOnAstStack()方法的具体详情如下:
包路径:org.eclipse.jdt.internal.compiler.parser.Parser
类名称:Parser
方法名:pushOnAstStack

Parser.pushOnAstStack介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

protected void consumeClassBodyopt() {
  // ClassBodyopt ::= $empty
  pushOnAstStack(null);
  this.endPosition = this.rParenPos;
}
protected void consumeClassDeclaration() {

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

protected void consumeClassBodyopt() {
  // ClassBodyopt ::= $empty
  pushOnAstStack(null);
  this.endPosition = this.rParenPos;
}
protected void consumeClassDeclaration() {

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

protected void consumeExpressionStatement() {
  // ExpressionStatement ::= StatementExpression ';'
  this.expressionLengthPtr--;
  Expression expression = this.expressionStack[this.expressionPtr--];
  expression.statementEnd = this.endStatementPosition;
  expression.bits |= ASTNode.InsideExpressionStatement;
  pushOnAstStack(expression);
}
protected void consumeFieldAccess(boolean isSuperAccess) {

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

protected void consumeUnionTypeAsClassType() {
  // UnionType ::= Type
  pushOnAstStack(getTypeReference(this.intStack[this.intPtr--]));
}
protected void consumeEmptyAnnotationTypeMemberDeclarationsopt() {

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

protected void consumeSimpleAssertStatement() {
  // AssertStatement ::= 'assert' Expression ';'
  this.expressionLengthPtr--;
  pushOnAstStack(new AssertStatement(this.expressionStack[this.expressionPtr--], this.intStack[this.intPtr--]));
}
protected void consumeSingleMemberAnnotation(boolean isTypeAnnotation) {

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

protected void consumeUnionTypeAsClassType() {
  // UnionType ::= Type
  pushOnAstStack(getTypeReference(this.intStack[this.intPtr--]));
}
protected void consumeEmptyAnnotationTypeMemberDeclarationsopt() {

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

protected void consumeAssertStatement() {
  // AssertStatement ::= 'assert' Expression ':' Expression ';'
  this.expressionLengthPtr-=2;
  pushOnAstStack(new AssertStatement(this.expressionStack[this.expressionPtr--], this.expressionStack[this.expressionPtr--], this.intStack[this.intPtr--]));
}
protected void consumeAssignment() {

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

protected void consumeStatementContinueWithLabel() {
  // ContinueStatement ::= 'continue' Identifier ';'
  // continue pushs a position on this.intStack in case there is no label

  pushOnAstStack(
    new ContinueStatement(
      this.identifierStack[this.identifierPtr--],
      this.intStack[this.intPtr--],
      this.endStatementPosition));
  this.identifierLengthPtr--;
}
protected void consumeStatementDo() {

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

protected void consumeStatementThrow() {
  // ThrowStatement ::= 'throw' Expression ';'
  this.expressionLengthPtr--;
  pushOnAstStack(new ThrowStatement(this.expressionStack[this.expressionPtr--], this.intStack[this.intPtr--], this.endStatementPosition));
}
protected void consumeStatementTry(boolean withFinally, boolean hasResources) {

代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

protected void consumeUnionTypeAsClassType() {
  // UnionType ::= Type
  pushOnAstStack(getTypeReference(this.intStack[this.intPtr--]));
}
protected void consumeEmptyAnnotationTypeMemberDeclarationsopt() {

代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

protected void consumeStatementContinueWithLabel() {
  // ContinueStatement ::= 'continue' Identifier ';'
  // continue pushs a position on this.intStack in case there is no label

  pushOnAstStack(
    new ContinueStatement(
      this.identifierStack[this.identifierPtr--],
      this.intStack[this.intPtr--],
      this.endStatementPosition));
  this.identifierLengthPtr--;
}
protected void consumeStatementDo() {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

protected void consumeAssertStatement() {
  // AssertStatement ::= 'assert' Expression ':' Expression ';'
  this.expressionLengthPtr-=2;
  pushOnAstStack(new AssertStatement(this.expressionStack[this.expressionPtr--], this.expressionStack[this.expressionPtr--], this.intStack[this.intPtr--]));
}
protected void consumeAssignment() {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

protected void consumeClassTypeElt() {
  // ClassTypeElt ::= ClassType
  pushOnAstStack(getTypeReference(0));
  /* if incomplete thrown exception list, this.listLength counter will not have been reset,
    indicating that some items are available on the stack */
  this.listLength++;
}
protected void consumeClassTypeList() {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

protected void consumeInterfaceType() {
  // InterfaceType ::= ClassOrInterfaceType
  pushOnAstStack(getTypeReference(0));
  /* if incomplete type header, this.listLength counter will not have been reset,
    indicating that some interfaces are available on the stack */
  this.listLength++;
}
protected void consumeInterfaceTypeList() {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

protected void consumeStatementBreakWithLabel() {
  // BreakStatement ::= 'break' Identifier ';'
  // break pushs a position on this.intStack in case there is no label

  pushOnAstStack(
    new BreakStatement(
      this.identifierStack[this.identifierPtr--],
      this.intStack[this.intPtr--],
      this.endStatementPosition));
  this.identifierLengthPtr--;
}
protected void consumeStatementCatch() {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

protected void consumeStatementContinue() {
  // ContinueStatement ::= 'continue' ';'
  // continue pushs a position on this.intStack in case there is no label

  pushOnAstStack(
    new ContinueStatement(
      null,
      this.intStack[this.intPtr--],
      this.endStatementPosition));
}
protected void consumeStatementContinueWithLabel() {

代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

protected void consumeCaseLabel() {
  // SwitchLabel ::= 'case' ConstantExpression ':'
  this.expressionLengthPtr--;
  Expression expression = this.expressionStack[this.expressionPtr--];
  CaseStatement caseStatement = new CaseStatement(expression, expression.sourceEnd, this.intStack[this.intPtr--]);
  // Look for $fall-through$ tag in leading comment for case statement
  if (hasLeadingTagComment(FALL_THROUGH_TAG, caseStatement.sourceStart)) {
    caseStatement.bits |= ASTNode.DocumentedFallthrough;
  }
  pushOnAstStack(caseStatement);
}
protected void consumeCastExpressionLL1() {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

protected void consumeCaseLabel() {
  // SwitchLabel ::= 'case' ConstantExpression ':'
  this.expressionLengthPtr--;
  Expression expression = this.expressionStack[this.expressionPtr--];
  CaseStatement caseStatement = new CaseStatement(expression, expression.sourceEnd, this.intStack[this.intPtr--]);
  // Look for $fall-through$ tag in leading comment for case statement
  if (hasLeadingTagComment(FALL_THROUGH_TAG, caseStatement.sourceStart)) {
    caseStatement.bits |= ASTNode.DocumentedFallthrough;
  }
  pushOnAstStack(caseStatement);
}
protected void consumeCastExpressionLL1() {

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

protected void consumeNestedLambda() {
  // NestedLambda ::= $empty - we get here just after the type+parenthesis elided singleton parameter or just before the '(' of the parameter list. 
  consumeNestedType();
  this.nestedMethod[this.nestedType] ++;
  LambdaExpression lambda = new LambdaExpression(this.compilationUnit.compilationResult, isAssistParser());
  pushOnAstStack(lambda);
  this.processingLambdaParameterList = true;	
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

protected void consumeNestedLambda() {
  // NestedLambda ::= $empty - we get here just after the type+parenthesis elided singleton parameter or just before the '(' of the parameter list. 
  consumeNestedType();
  this.nestedMethod[this.nestedType] ++;
  LambdaExpression lambda = new LambdaExpression(this.compilationUnit.compilationResult, isAssistParser());
  pushOnAstStack(lambda);
  this.processingLambdaParameterList = true;	
}

相关文章

Parser类方法