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

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

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

Parser.consumeOpenBlock介绍

暂无

代码示例

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

  1. protected void consumeOpenFakeBlock() {
  2. // OpenBlock ::= $empty
  3. super.consumeOpenBlock();
  4. int stackLength = this.blockStarts.length;
  5. if (this.realBlockPtr >= stackLength) {
  6. System.arraycopy(
  7. this.blockStarts, 0,
  8. this.blockStarts = new int[stackLength + StackIncrement], 0,
  9. stackLength);
  10. }
  11. this.blockStarts[this.realBlockPtr] = -this.scanner.startPosition;
  12. }
  13. protected void consumePackageDeclarationName() {

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

  1. protected void consumeOpenFakeBlock() {
  2. // OpenBlock ::= $empty
  3. super.consumeOpenBlock();
  4. int stackLength = this.blockStarts.length;
  5. if (this.realBlockPtr >= stackLength) {
  6. System.arraycopy(
  7. this.blockStarts, 0,
  8. this.blockStarts = new int[stackLength + StackIncrement], 0,
  9. stackLength);
  10. }
  11. this.blockStarts[this.realBlockPtr] = -this.scanner.startPosition;
  12. }
  13. protected void consumePackageDeclarationName() {

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

  1. protected void consumeOpenFakeBlock() {
  2. // OpenBlock ::= $empty
  3. super.consumeOpenBlock();
  4. int stackLength = this.blockStarts.length;
  5. if (this.realBlockPtr >= stackLength) {
  6. System.arraycopy(
  7. this.blockStarts, 0,
  8. this.blockStarts = new int[stackLength + StackIncrement], 0,
  9. stackLength);
  10. }
  11. this.blockStarts[this.realBlockPtr] = -this.scanner.startPosition;
  12. }
  13. @Override

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

  1. protected void consumeOpenFakeBlock() {
  2. // OpenBlock ::= $empty
  3. super.consumeOpenBlock();
  4. int stackLength = this.blockStarts.length;
  5. if (this.realBlockPtr >= stackLength) {
  6. System.arraycopy(
  7. this.blockStarts, 0,
  8. this.blockStarts = new int[stackLength + StackIncrement], 0,
  9. stackLength);
  10. }
  11. this.blockStarts[this.realBlockPtr] = -this.scanner.startPosition;
  12. }
  13. protected void consumePackageDeclarationName() {

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

  1. protected void consumeOpenBlock() {
  2. // OpenBlock ::= $empty
  3. super.consumeOpenBlock();
  4. int stackLength = this.blockStarts.length;
  5. if (this.realBlockPtr >= stackLength) {
  6. System.arraycopy(
  7. this.blockStarts, 0,
  8. this.blockStarts = new int[stackLength + StackIncrement], 0,
  9. stackLength);
  10. }
  11. this.blockStarts[this.realBlockPtr] = this.scanner.startPosition;
  12. }
  13. protected void consumeOpenFakeBlock() {

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

  1. protected void consumeOpenFakeBlock() {
  2. // OpenBlock ::= $empty
  3. super.consumeOpenBlock();
  4. int stackLength = this.blockStarts.length;
  5. if (this.realBlockPtr >= stackLength) {
  6. System.arraycopy(
  7. this.blockStarts, 0,
  8. this.blockStarts = new int[stackLength + StackIncrement], 0,
  9. stackLength);
  10. }
  11. this.blockStarts[this.realBlockPtr] = -this.scanner.startPosition;
  12. }
  13. protected void consumePackageDeclarationName() {

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

  1. protected void consumeOpenFakeBlock() {
  2. // OpenBlock ::= $empty
  3. super.consumeOpenBlock();
  4. int stackLength = this.blockStarts.length;
  5. if (this.realBlockPtr >= stackLength) {
  6. System.arraycopy(
  7. this.blockStarts, 0,
  8. this.blockStarts = new int[stackLength + StackIncrement], 0,
  9. stackLength);
  10. }
  11. this.blockStarts[this.realBlockPtr] = -this.scanner.startPosition;
  12. }
  13. protected void consumePackageDeclarationName() {

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

  1. protected void consumeNestedMethod() {
  2. // NestedMethod ::= $empty
  3. jumpOverMethodBody();
  4. this.nestedMethod[this.nestedType] ++;
  5. pushOnIntStack(this.scanner.currentPosition);
  6. consumeOpenBlock();
  7. }
  8. protected void consumeNestedType() {

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

  1. protected void consumeNestedMethod() {
  2. // NestedMethod ::= $empty
  3. jumpOverMethodBody();
  4. this.nestedMethod[this.nestedType] ++;
  5. pushOnIntStack(this.scanner.currentPosition);
  6. consumeOpenBlock();
  7. }
  8. protected void consumeNestedType() {

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

  1. protected void consumeNestedMethod() {
  2. // NestedMethod ::= $empty
  3. jumpOverMethodBody();
  4. this.nestedMethod[this.nestedType] ++;
  5. pushOnIntStack(this.scanner.currentPosition);
  6. consumeOpenBlock();
  7. }
  8. protected void consumeNestedType() {

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

  1. protected void consumeNestedMethod() {
  2. // NestedMethod ::= $empty
  3. jumpOverMethodBody();
  4. this.nestedMethod[this.nestedType] ++;
  5. pushOnIntStack(this.scanner.currentPosition);
  6. consumeOpenBlock();
  7. }
  8. protected void consumeNestedType() {

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

  1. protected void consumeNestedMethod() {
  2. // NestedMethod ::= $empty
  3. jumpOverMethodBody();
  4. this.nestedMethod[this.nestedType] ++;
  5. pushOnIntStack(this.scanner.currentPosition);
  6. consumeOpenBlock();
  7. }
  8. protected void consumeNestedType() {

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

  1. protected void consumeNestedMethod() {
  2. // NestedMethod ::= $empty
  3. jumpOverMethodBody();
  4. this.nestedMethod[this.nestedType] ++;
  5. pushOnIntStack(this.scanner.currentPosition);
  6. consumeOpenBlock();
  7. }
  8. protected void consumeNestedType() {

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

  1. protected void consumeNestedMethod() {
  2. // NestedMethod ::= $empty
  3. jumpOverMethodBody();
  4. this.nestedMethod[this.nestedType] ++;
  5. pushOnIntStack(this.scanner.currentPosition);
  6. consumeOpenBlock();
  7. }
  8. protected void consumeNestedType() {

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

  1. protected void consumeNestedMethod() {
  2. // NestedMethod ::= $empty
  3. jumpOverMethodBody();
  4. this.nestedMethod[this.nestedType] ++;
  5. pushOnIntStack(this.scanner.currentPosition);
  6. consumeOpenBlock();
  7. }
  8. protected void consumeNestedType() {

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

  1. protected void consumeNestedMethod() {
  2. // NestedMethod ::= $empty
  3. jumpOverMethodBody();
  4. this.nestedMethod[this.nestedType] ++;
  5. pushOnIntStack(this.scanner.currentPosition);
  6. consumeOpenBlock();
  7. }
  8. protected void consumeNestedType() {

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

  1. protected void consumeNestedMethod() {
  2. // NestedMethod ::= $empty
  3. jumpOverMethodBody();
  4. this.nestedMethod[this.nestedType] ++;
  5. pushOnIntStack(this.scanner.currentPosition);
  6. consumeOpenBlock();
  7. }
  8. protected void consumeNestedType() {

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

  1. protected void consumeNestedMethod() {
  2. // NestedMethod ::= $empty
  3. jumpOverMethodBody();
  4. this.nestedMethod[this.nestedType] ++;
  5. pushOnIntStack(this.scanner.currentPosition);
  6. consumeOpenBlock();
  7. }
  8. protected void consumeNestedType() {

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

  1. @Override
  2. protected void consumeOpenBlock() {
  3. super.consumeOpenBlock();

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

  1. protected void consumeOpenBlock() {
  2. // OpenBlock ::= $empty
  3. super.consumeOpenBlock();
  4. int stackLength = this.blockStarts.length;
  5. if (this.realBlockPtr >= stackLength) {
  6. System.arraycopy(
  7. this.blockStarts, 0,
  8. this.blockStarts = new int[stackLength + StackIncrement], 0,
  9. stackLength);
  10. }
  11. this.blockStarts[this.realBlockPtr] = this.scanner.startPosition;
  12. if (requireExtendedRecovery()) {
  13. // This is an epsilon production: We are in the state with kernel item: Block ::= .OpenBlock LBRACE BlockStatementsopt RBRACE
  14. if (this.currentToken == TokenNameLBRACE && this.unstackedAct > NUM_RULES) { // wait for chain reductions to finish before commit.
  15. stackLength = this.stack.length;
  16. if (++this.stateStackTop >= stackLength - 1) { // Need two slots.
  17. System.arraycopy(
  18. this.stack, 0,
  19. this.stack = new int[stackLength + StackIncrement], 0,
  20. stackLength);
  21. }
  22. this.stack[this.stateStackTop++] = this.unstackedAct; // transition to Block ::= OpenBlock .LBRACE BlockStatementsopt RBRACE
  23. this.stack[this.stateStackTop] = tAction(this.unstackedAct, this.currentToken); // transition to Block ::= OpenBlock LBRACE .BlockStatementsopt RBRACE
  24. commit();
  25. this.stateStackTop -= 2;
  26. }
  27. }
  28. }
  29. protected void consumeOpenFakeBlock() {

相关文章

Parser类方法