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

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

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

Parser.pushOnExpressionStack介绍

暂无

代码示例

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

  1. protected void consumeDimWithOrWithOutExpr() {
  2. // DimWithOrWithOutExpr ::= TypeAnnotationsopt '[' ']'
  3. // DimWithOrWithOutExpr ::= TypeAnnotationsopt '[' Expression ']'
  4. pushOnExpressionStack(null);
  5. if(this.currentElement != null && this.currentToken == TokenNameLBRACE) {
  6. this.ignoreNextOpeningBrace = true;
  7. this.currentElement.bracketBalance++;
  8. }
  9. }
  10. protected void consumeDimWithOrWithOutExprs() {

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

  1. protected void consumeDimWithOrWithOutExpr() {
  2. // DimWithOrWithOutExpr ::= '[' ']'
  3. pushOnExpressionStack(null);
  4. if(this.currentElement != null && this.currentToken == TokenNameLBRACE) {
  5. this.ignoreNextOpeningBrace = true;
  6. this.currentElement.bracketBalance++;
  7. }
  8. }
  9. protected void consumeDimWithOrWithOutExprs() {

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

  1. protected void consumePostfixExpression() {
  2. // PostfixExpression ::= Name
  3. pushOnExpressionStack(getUnspecifiedReferenceOptimized());
  4. }
  5. protected void consumePrimaryNoNewArray() {

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

  1. protected void consumePrimaryNoNewArrayThis() {
  2. // PrimaryNoNewArray ::= 'this'
  3. pushOnExpressionStack(new ThisReference(this.intStack[this.intPtr--], this.endPosition));
  4. }
  5. protected void consumePrimaryNoNewArrayWithName() {

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

  1. protected void consumePostfixExpression() {
  2. // PostfixExpression ::= Name
  3. pushOnExpressionStack(getUnspecifiedReferenceOptimized());
  4. }
  5. protected void consumePrimaryNoNewArray() {

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

  1. protected void consumePostfixExpression() {
  2. // PostfixExpression ::= Name
  3. pushOnExpressionStack(getUnspecifiedReferenceOptimized());
  4. }
  5. protected void consumePrimaryNoNewArray() {

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

  1. protected void consumePrimaryNoNewArrayThis() {
  2. // PrimaryNoNewArray ::= 'this'
  3. pushOnExpressionStack(new ThisReference(this.intStack[this.intPtr--], this.endPosition));
  4. }
  5. protected void consumePrimaryNoNewArrayWithName() {

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

  1. protected void consumePostfixExpression() {
  2. // PostfixExpression ::= Name
  3. pushOnExpressionStack(getUnspecifiedReferenceOptimized());
  4. }
  5. protected void consumePrimaryNoNewArray() {

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

  1. protected void consumePrimaryNoNewArrayPrimitiveArrayType() {
  2. // PrimaryNoNewArray ::= PrimitiveType Dims '.' 'class'
  3. this.intPtr--; // remove the class start position
  4. pushOnExpressionStack(
  5. new ClassLiteralAccess(this.intStack[this.intPtr--], getTypeReference(this.intStack[this.intPtr--])));
  6. }
  7. protected void consumePrimaryNoNewArrayPrimitiveType() {

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

  1. protected void consumePrimaryNoNewArrayPrimitiveType() {
  2. // PrimaryNoNewArray ::= PrimitiveType '.' 'class'
  3. this.intPtr--; // remove the class start position
  4. pushOnExpressionStack(
  5. new ClassLiteralAccess(this.intStack[this.intPtr--], getTypeReference(0)));
  6. }
  7. protected void consumePrimaryNoNewArrayThis() {

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

  1. protected void consumePrimaryNoNewArrayWithName() {
  2. // PrimaryNoNewArray ::= PushLPAREN Expression PushRPAREN
  3. pushOnExpressionStack(getUnspecifiedReferenceOptimized());
  4. final Expression parenthesizedExpression = this.expressionStack[this.expressionPtr];
  5. updateSourcePosition(parenthesizedExpression);
  6. int numberOfParenthesis = (parenthesizedExpression.bits & ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT;
  7. parenthesizedExpression.bits &= ~ASTNode.ParenthesizedMASK;
  8. parenthesizedExpression.bits |= (numberOfParenthesis + 1) << ASTNode.ParenthesizedSHIFT;
  9. }
  10. protected void consumePrimitiveArrayType() {

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

  1. protected void consumePrimaryNoNewArrayWithName() {
  2. // PrimaryNoNewArray ::= PushLPAREN Name PushRPAREN
  3. pushOnExpressionStack(getUnspecifiedReferenceOptimized());
  4. final Expression parenthesizedExpression = this.expressionStack[this.expressionPtr];
  5. updateSourcePosition(parenthesizedExpression);
  6. int numberOfParenthesis = (parenthesizedExpression.bits & ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT;
  7. parenthesizedExpression.bits &= ~ASTNode.ParenthesizedMASK;
  8. parenthesizedExpression.bits |= (numberOfParenthesis + 1) << ASTNode.ParenthesizedSHIFT;
  9. }
  10. protected void consumePrimitiveArrayType() {

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

  1. protected void consumePrimaryNoNewArrayWithName() {
  2. // PrimaryNoNewArray ::= PushLPAREN Expression PushRPAREN
  3. pushOnExpressionStack(getUnspecifiedReferenceOptimized());
  4. final Expression parenthesizedExpression = this.expressionStack[this.expressionPtr];
  5. updateSourcePosition(parenthesizedExpression);
  6. int numberOfParenthesis = (parenthesizedExpression.bits & ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT;
  7. parenthesizedExpression.bits &= ~ASTNode.ParenthesizedMASK;
  8. parenthesizedExpression.bits |= (numberOfParenthesis + 1) << ASTNode.ParenthesizedSHIFT;
  9. }
  10. protected void consumePrimitiveArrayType() {

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

  1. protected void consumeMethodInvocationSuper() {
  2. // MethodInvocation ::= 'super' '.' 'Identifier' '(' ArgumentListopt ')'
  3. MessageSend m = newMessageSend();
  4. m.sourceStart = this.intStack[this.intPtr--]; // start position of the super keyword
  5. m.sourceEnd = this.rParenPos;
  6. m.nameSourcePosition = this.identifierPositionStack[this.identifierPtr];
  7. m.selector = this.identifierStack[this.identifierPtr--];
  8. this.identifierLengthPtr--;
  9. m.receiver = new SuperReference(m.sourceStart, this.endPosition);
  10. pushOnExpressionStack(m);
  11. }
  12. protected void consumeMethodInvocationSuperWithTypeArguments() {

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

  1. protected void consumePrimaryNoNewArrayPrimitiveArrayType() {
  2. // PrimaryNoNewArray ::= PrimitiveType Dims '.' 'class'
  3. this.intPtr--; // remove the class start position
  4. pushOnExpressionStack(
  5. new ClassLiteralAccess(this.intStack[this.intPtr--], getTypeReference(this.intStack[this.intPtr--])));
  6. }
  7. protected void consumePrimaryNoNewArrayPrimitiveType() {

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

  1. protected void consumePrimaryNoNewArrayWithName() {
  2. // PrimaryNoNewArray ::= PushLPAREN Name PushRPAREN
  3. pushOnExpressionStack(getUnspecifiedReferenceOptimized());
  4. final Expression parenthesizedExpression = this.expressionStack[this.expressionPtr];
  5. updateSourcePosition(parenthesizedExpression);
  6. int numberOfParenthesis = (parenthesizedExpression.bits & ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT;
  7. parenthesizedExpression.bits &= ~ASTNode.ParenthesizedMASK;
  8. parenthesizedExpression.bits |= (numberOfParenthesis + 1) << ASTNode.ParenthesizedSHIFT;
  9. }
  10. protected void consumePrimitiveArrayType() {

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

  1. protected void consumePrimaryNoNewArrayArrayType() {
  2. // PrimaryNoNewArray ::= Name Dims '.' 'class'
  3. this.intPtr--; // remove the class start position
  4. pushOnGenericsIdentifiersLengthStack(this.identifierLengthStack[this.identifierLengthPtr]);
  5. pushOnGenericsLengthStack(0);
  6. pushOnExpressionStack(
  7. new ClassLiteralAccess(this.intStack[this.intPtr--], getTypeReference(this.intStack[this.intPtr--])));
  8. }
  9. protected void consumePrimaryNoNewArrayName() {

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

  1. protected void consumePrimaryNoNewArrayName() {
  2. // PrimaryNoNewArray ::= Name '.' 'class'
  3. this.intPtr--; // remove the class start position
  4. // handle type arguments
  5. pushOnGenericsIdentifiersLengthStack(this.identifierLengthStack[this.identifierLengthPtr]);
  6. pushOnGenericsLengthStack(0);
  7. TypeReference typeReference = getTypeReference(0);
  8. pushOnExpressionStack(
  9. new ClassLiteralAccess(this.intStack[this.intPtr--], typeReference));
  10. }
  11. protected void consumePrimaryNoNewArrayNameSuper() {

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

  1. protected void consumePrimaryNoNewArrayArrayType() {
  2. // PrimaryNoNewArray ::= Name Dims '.' 'class'
  3. this.intPtr--; // remove the class start position
  4. pushOnGenericsIdentifiersLengthStack(this.identifierLengthStack[this.identifierLengthPtr]);
  5. pushOnGenericsLengthStack(0);
  6. ClassLiteralAccess cla;
  7. pushOnExpressionStack(
  8. cla = new ClassLiteralAccess(this.intStack[this.intPtr--], getTypeReference(this.intStack[this.intPtr--])));
  9. rejectIllegalTypeAnnotations(cla.type); // javac correctly rejects annotations on dimensions here.
  10. }
  11. protected void consumePrimaryNoNewArrayName() {

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

  1. protected void consumePrimaryNoNewArrayArrayType() {
  2. // PrimaryNoNewArray ::= Name Dims '.' 'class'
  3. this.intPtr--; // remove the class start position
  4. pushOnGenericsIdentifiersLengthStack(this.identifierLengthStack[this.identifierLengthPtr]);
  5. pushOnGenericsLengthStack(0);
  6. ClassLiteralAccess cla;
  7. pushOnExpressionStack(
  8. cla = new ClassLiteralAccess(this.intStack[this.intPtr--], getTypeReference(this.intStack[this.intPtr--])));
  9. rejectIllegalTypeAnnotations(cla.type); // javac correctly rejects annotations on dimensions here.
  10. }
  11. protected void consumePrimaryNoNewArrayName() {

相关文章

Parser类方法