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

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

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

Parser.pushOnTypeAnnotationStack介绍

暂无

代码示例

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

  1. pushOnTypeAnnotationStack(normalAnnotation);
  2. } else {
  3. pushOnExpressionStack(normalAnnotation);

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

  1. pushOnTypeAnnotationStack(normalAnnotation);
  2. } else {
  3. pushOnExpressionStack(normalAnnotation);

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

  1. protected void consumeMarkerAnnotation(boolean isTypeAnnotation) {
  2. // MarkerAnnotation ::= AnnotationName
  3. // MarkerTypeAnnotation ::= TypeAnnotationName
  4. MarkerAnnotation markerAnnotation = null;
  5. int oldIndex = this.identifierPtr;
  6. TypeReference typeReference = getAnnotationType();
  7. markerAnnotation = new MarkerAnnotation(typeReference, this.intStack[this.intPtr--]);
  8. markerAnnotation.declarationSourceEnd = markerAnnotation.sourceEnd;
  9. if (isTypeAnnotation) {
  10. pushOnTypeAnnotationStack(markerAnnotation);
  11. } else {
  12. pushOnExpressionStack(markerAnnotation);
  13. }
  14. if(!this.statementRecoveryActivated &&
  15. this.options.sourceLevel < ClassFileConstants.JDK1_5 &&
  16. this.lastErrorEndPositionBeforeRecovery < this.scanner.currentPosition) {
  17. problemReporter().invalidUsageOfAnnotation(markerAnnotation);
  18. }
  19. this.recordStringLiterals = true;
  20. if (this.currentElement != null && this.currentElement instanceof RecoveredAnnotation) {
  21. this.currentElement = ((RecoveredAnnotation)this.currentElement).addAnnotation(markerAnnotation, oldIndex);
  22. }
  23. }
  24. protected void consumeMemberValueArrayInitializer() {

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

  1. protected void consumeMarkerAnnotation(boolean isTypeAnnotation) {
  2. // MarkerAnnotation ::= AnnotationName
  3. // MarkerTypeAnnotation ::= TypeAnnotationName
  4. MarkerAnnotation markerAnnotation = null;
  5. int oldIndex = this.identifierPtr;
  6. TypeReference typeReference = getAnnotationType();
  7. markerAnnotation = new MarkerAnnotation(typeReference, this.intStack[this.intPtr--]);
  8. markerAnnotation.declarationSourceEnd = markerAnnotation.sourceEnd;
  9. if (isTypeAnnotation) {
  10. pushOnTypeAnnotationStack(markerAnnotation);
  11. } else {
  12. pushOnExpressionStack(markerAnnotation);
  13. }
  14. if(!this.statementRecoveryActivated &&
  15. this.options.sourceLevel < ClassFileConstants.JDK1_5 &&
  16. this.lastErrorEndPositionBeforeRecovery < this.scanner.currentPosition) {
  17. problemReporter().invalidUsageOfAnnotation(markerAnnotation);
  18. }
  19. this.recordStringLiterals = true;
  20. if (this.currentElement != null && this.currentElement instanceof RecoveredAnnotation) {
  21. this.currentElement = ((RecoveredAnnotation)this.currentElement).addAnnotation(markerAnnotation, oldIndex);
  22. }
  23. }
  24. protected void consumeMemberValueArrayInitializer() {

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

  1. pushOnTypeAnnotationStack(normalAnnotation);
  2. } else {
  3. pushOnExpressionStack(normalAnnotation);

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

  1. protected void consumeMarkerAnnotation(boolean isTypeAnnotation) {
  2. // MarkerAnnotation ::= AnnotationName
  3. // MarkerTypeAnnotation ::= TypeAnnotationName
  4. MarkerAnnotation markerAnnotation = null;
  5. int oldIndex = this.identifierPtr;
  6. TypeReference typeReference = getAnnotationType();
  7. markerAnnotation = new MarkerAnnotation(typeReference, this.intStack[this.intPtr--]);
  8. markerAnnotation.declarationSourceEnd = markerAnnotation.sourceEnd;
  9. if (isTypeAnnotation) {
  10. pushOnTypeAnnotationStack(markerAnnotation);
  11. } else {
  12. pushOnExpressionStack(markerAnnotation);
  13. }
  14. if(!this.statementRecoveryActivated &&
  15. this.options.sourceLevel < ClassFileConstants.JDK1_5 &&
  16. this.lastErrorEndPositionBeforeRecovery < this.scanner.currentPosition) {
  17. problemReporter().invalidUsageOfAnnotation(markerAnnotation);
  18. }
  19. this.recordStringLiterals = true;
  20. if (this.currentElement != null && this.currentElement instanceof RecoveredAnnotation) {
  21. this.currentElement = ((RecoveredAnnotation)this.currentElement).addAnnotation(markerAnnotation, oldIndex);
  22. }
  23. }
  24. protected void consumeMemberValueArrayInitializer() {

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

  1. pushOnTypeAnnotationStack(normalAnnotation);
  2. } else {
  3. pushOnExpressionStack(normalAnnotation);

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

  1. protected void consumeMarkerAnnotation(boolean isTypeAnnotation) {
  2. // MarkerAnnotation ::= AnnotationName
  3. // MarkerTypeAnnotation ::= TypeAnnotationName
  4. MarkerAnnotation markerAnnotation = null;
  5. int oldIndex = this.identifierPtr;
  6. TypeReference typeReference = getAnnotationType();
  7. markerAnnotation = new MarkerAnnotation(typeReference, this.intStack[this.intPtr--]);
  8. markerAnnotation.declarationSourceEnd = markerAnnotation.sourceEnd;
  9. if (isTypeAnnotation) {
  10. pushOnTypeAnnotationStack(markerAnnotation);
  11. } else {
  12. pushOnExpressionStack(markerAnnotation);
  13. }
  14. if(!this.statementRecoveryActivated &&
  15. this.options.sourceLevel < ClassFileConstants.JDK1_5 &&
  16. this.lastErrorEndPositionBeforeRecovery < this.scanner.currentPosition) {
  17. problemReporter().invalidUsageOfAnnotation(markerAnnotation);
  18. }
  19. this.recordStringLiterals = true;
  20. if (this.currentElement != null && this.currentElement instanceof RecoveredAnnotation) {
  21. this.currentElement = ((RecoveredAnnotation)this.currentElement).addAnnotation(markerAnnotation, oldIndex);
  22. }
  23. }
  24. protected void consumeMemberValueArrayInitializer() {

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

  1. protected void consumeMarkerAnnotation(boolean isTypeAnnotation) {
  2. // MarkerAnnotation ::= AnnotationName
  3. // MarkerTypeAnnotation ::= TypeAnnotationName
  4. MarkerAnnotation markerAnnotation = null;
  5. int oldIndex = this.identifierPtr;
  6. TypeReference typeReference = getAnnotationType();
  7. markerAnnotation = new MarkerAnnotation(typeReference, this.intStack[this.intPtr--]);
  8. markerAnnotation.declarationSourceEnd = markerAnnotation.sourceEnd;
  9. if (isTypeAnnotation) {
  10. pushOnTypeAnnotationStack(markerAnnotation);
  11. } else {
  12. pushOnExpressionStack(markerAnnotation);
  13. }
  14. if(!this.statementRecoveryActivated &&
  15. this.options.sourceLevel < ClassFileConstants.JDK1_5 &&
  16. this.lastErrorEndPositionBeforeRecovery < this.scanner.currentPosition) {
  17. problemReporter().invalidUsageOfAnnotation(markerAnnotation);
  18. }
  19. this.recordStringLiterals = true;
  20. if (this.currentElement != null && this.currentElement instanceof RecoveredAnnotation) {
  21. this.currentElement = ((RecoveredAnnotation)this.currentElement).addAnnotation(markerAnnotation, oldIndex);
  22. }
  23. }
  24. protected void consumeMemberValueArrayInitializer() {

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

  1. protected void consumeMarkerAnnotation(boolean isTypeAnnotation) {
  2. // MarkerAnnotation ::= AnnotationName
  3. // MarkerTypeAnnotation ::= TypeAnnotationName
  4. MarkerAnnotation markerAnnotation = null;
  5. int oldIndex = this.identifierPtr;
  6. TypeReference typeReference = getAnnotationType();
  7. markerAnnotation = new MarkerAnnotation(typeReference, this.intStack[this.intPtr--]);
  8. markerAnnotation.declarationSourceEnd = markerAnnotation.sourceEnd;
  9. if (isTypeAnnotation) {
  10. pushOnTypeAnnotationStack(markerAnnotation);
  11. } else {
  12. pushOnExpressionStack(markerAnnotation);
  13. }
  14. if(!this.statementRecoveryActivated &&
  15. this.options.sourceLevel < ClassFileConstants.JDK1_5 &&
  16. this.lastErrorEndPositionBeforeRecovery < this.scanner.currentPosition) {
  17. problemReporter().invalidUsageOfAnnotation(markerAnnotation);
  18. }
  19. this.recordStringLiterals = true;
  20. if (this.currentElement != null && this.currentElement instanceof RecoveredAnnotation) {
  21. this.currentElement = ((RecoveredAnnotation)this.currentElement).addAnnotation(markerAnnotation, oldIndex);
  22. }
  23. }
  24. protected void consumeMemberValueArrayInitializer() {

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

  1. protected void consumeMarkerAnnotation(boolean isTypeAnnotation) {
  2. // MarkerAnnotation ::= AnnotationName
  3. // MarkerTypeAnnotation ::= TypeAnnotationName
  4. MarkerAnnotation markerAnnotation = null;
  5. int oldIndex = this.identifierPtr;
  6. TypeReference typeReference = getAnnotationType();
  7. markerAnnotation = new MarkerAnnotation(typeReference, this.intStack[this.intPtr--]);
  8. markerAnnotation.declarationSourceEnd = markerAnnotation.sourceEnd;
  9. if (isTypeAnnotation) {
  10. pushOnTypeAnnotationStack(markerAnnotation);
  11. } else {
  12. pushOnExpressionStack(markerAnnotation);
  13. }
  14. if(!this.statementRecoveryActivated &&
  15. this.options.sourceLevel < ClassFileConstants.JDK1_5 &&
  16. this.lastErrorEndPositionBeforeRecovery < this.scanner.currentPosition) {
  17. problemReporter().invalidUsageOfAnnotation(markerAnnotation);
  18. }
  19. this.recordStringLiterals = true;
  20. if (this.currentElement != null && this.currentElement instanceof RecoveredAnnotation) {
  21. this.currentElement = ((RecoveredAnnotation)this.currentElement).addAnnotation(markerAnnotation, oldIndex);
  22. }
  23. }
  24. protected void consumeMemberValueArrayInitializer() {

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

  1. protected void consumeMarkerAnnotation(boolean isTypeAnnotation) {
  2. // MarkerAnnotation ::= AnnotationName
  3. // MarkerTypeAnnotation ::= TypeAnnotationName
  4. MarkerAnnotation markerAnnotation = null;
  5. int oldIndex = this.identifierPtr;
  6. TypeReference typeReference = getAnnotationType();
  7. markerAnnotation = new MarkerAnnotation(typeReference, this.intStack[this.intPtr--]);
  8. markerAnnotation.declarationSourceEnd = markerAnnotation.sourceEnd;
  9. if (isTypeAnnotation) {
  10. pushOnTypeAnnotationStack(markerAnnotation);
  11. } else {
  12. pushOnExpressionStack(markerAnnotation);
  13. }
  14. if(!this.statementRecoveryActivated &&
  15. this.options.sourceLevel < ClassFileConstants.JDK1_5 &&
  16. this.lastErrorEndPositionBeforeRecovery < this.scanner.currentPosition) {
  17. problemReporter().invalidUsageOfAnnotation(markerAnnotation);
  18. }
  19. this.recordStringLiterals = true;
  20. if (this.currentElement != null && this.currentElement instanceof RecoveredAnnotation) {
  21. this.currentElement = ((RecoveredAnnotation)this.currentElement).addAnnotation(markerAnnotation, oldIndex);
  22. }
  23. }
  24. protected void consumeMemberValueArrayInitializer() {

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

  1. pushOnTypeAnnotationStack(singleMemberAnnotation);
  2. } else {
  3. pushOnExpressionStack(singleMemberAnnotation);

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

  1. pushOnTypeAnnotationStack(singleMemberAnnotation);
  2. } else {
  3. pushOnExpressionStack(singleMemberAnnotation);

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

  1. pushOnTypeAnnotationStack(singleMemberAnnotation);
  2. } else {
  3. pushOnExpressionStack(singleMemberAnnotation);

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

  1. pushOnTypeAnnotationStack(singleMemberAnnotation);
  2. } else {
  3. pushOnExpressionStack(singleMemberAnnotation);

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

  1. pushOnTypeAnnotationStack(singleMemberAnnotation);
  2. } else {
  3. pushOnExpressionStack(singleMemberAnnotation);

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

  1. pushOnTypeAnnotationStack(singleMemberAnnotation);
  2. } else {
  3. pushOnExpressionStack(singleMemberAnnotation);

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

  1. pushOnTypeAnnotationStack(singleMemberAnnotation);
  2. } else {
  3. pushOnExpressionStack(singleMemberAnnotation);

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

  1. pushOnTypeAnnotationStack(singleMemberAnnotation);
  2. } else {
  3. pushOnExpressionStack(singleMemberAnnotation);

相关文章

Parser类方法