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

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

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

Parser.consumeMethodDeclaration介绍

暂无

代码示例

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

  1. protected void consumeMethodDeclaration(boolean isNotAbstract, boolean isDefaultMethod) {
  2. if (!isNotAbstract) {
  3. popElement(K_METHOD_DELIMITER);
  4. }
  5. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);
  6. }
  7. protected void consumeMethodHeader() {

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

  1. protected void consumeMethodDeclaration(boolean isNotAbstract, boolean isDefaultMethod) {
  2. if (!isNotAbstract) {
  3. popElement(K_METHOD_DELIMITER);
  4. }
  5. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);
  6. }
  7. protected void consumeMethodHeader() {

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

  1. protected void consumeMethodDeclaration(boolean isNotAbstract, boolean isDefaultMethod) {
  2. if (!isNotAbstract) {
  3. popElement(K_METHOD_DELIMITER);
  4. }
  5. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);
  6. }
  7. protected void consumeMethodHeader() {

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

  1. protected void consumeMethodDeclaration(boolean isNotAbstract) {
  2. if (!isNotAbstract) {
  3. popElement(K_METHOD_DELIMITER);
  4. }
  5. super.consumeMethodDeclaration(isNotAbstract);
  6. }
  7. protected void consumeMethodHeader() {

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

  1. protected void consumeMethodDeclaration(boolean isNotAbstract, boolean isDefaultMethod) {
  2. if (!isNotAbstract) {
  3. popElement(K_METHOD_DELIMITER);
  4. }
  5. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);
  6. }
  7. protected void consumeMethodHeader() {

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

  1. protected void consumeMethodDeclaration(boolean isNotAbstract, boolean isDefaultMethod) {
  2. // MethodDeclaration ::= MethodHeader MethodBody
  3. // AbstractMethodDeclaration ::= MethodHeader ';'
  4. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);
  5. if (isLocalDeclaration()) {
  6. // we ignore the local variable declarations
  7. return;
  8. }
  9. MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  10. this.requestor.exitMethod(this.endStatementPosition, md.declarationSourceEnd);
  11. }
  12. /*

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

  1. protected void consumeMethodDeclaration(boolean isNotAbstract, boolean isDefaultMethod) {
  2. // MethodDeclaration ::= MethodHeader MethodBody
  3. // AbstractMethodDeclaration ::= MethodHeader ';'
  4. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);
  5. if (isLocalDeclaration()) {
  6. // we ignore the local variable declarations
  7. return;
  8. }
  9. MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  10. this.requestor.exitMethod(this.endStatementPosition, md.declarationSourceEnd);
  11. }
  12. /*

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

  1. protected void consumeMethodDeclaration(boolean isNotAbstract, boolean isDefaultMethod) {
  2. // MethodDeclaration ::= MethodHeader MethodBody
  3. // AbstractMethodDeclaration ::= MethodHeader ';'
  4. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);
  5. if (isLocalDeclaration()) {
  6. // we ignore the local variable declarations
  7. return;
  8. }
  9. MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  10. this.requestor.exitMethod(this.endStatementPosition, md.declarationSourceEnd);
  11. }
  12. /*

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

  1. protected void consumeMethodDeclaration(boolean isNotAbstract, boolean isDefaultMethod) {
  2. // MethodDeclaration ::= MethodHeader MethodBody
  3. // AbstractMethodDeclaration ::= MethodHeader ';'
  4. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);
  5. if (isLocalDeclaration()) {
  6. // we ignore the local variable declarations
  7. return;
  8. }
  9. MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  10. this.requestor.exitMethod(this.endStatementPosition, md.declarationSourceEnd);
  11. }
  12. /*

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

  1. protected void consumeMethodDeclaration(boolean isNotAbstract) {
  2. // MethodDeclaration ::= MethodHeader MethodBody
  3. // AbstractMethodDeclaration ::= MethodHeader ';'
  4. super.consumeMethodDeclaration(isNotAbstract);
  5. if (isLocalDeclaration()) {
  6. // we ignore the local variable declarations
  7. return;
  8. }
  9. MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  10. this.requestor.exitMethod(this.endStatementPosition, md.declarationSourceEnd);
  11. }
  12. /*

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

  1. protected void consumeMethodDeclaration(boolean isNotAbstract, boolean isDefaultMethod) {
  2. // MethodDeclaration ::= MethodHeader MethodBody
  3. // AbstractMethodDeclaration ::= MethodHeader ';'
  4. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);
  5. if (isLocalDeclaration()) {
  6. // we ignore the local variable declarations
  7. return;
  8. }
  9. MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  10. this.requestor.exitMethod(this.endStatementPosition, md.declarationSourceEnd);
  11. }
  12. /*

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

  1. @Override
  2. protected void consumeMethodDeclaration(boolean isNotAbstract, boolean isDefaultMethod) {
  3. // MethodDeclaration ::= MethodHeader MethodBody
  4. // AbstractMethodDeclaration ::= MethodHeader ';'
  5. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);
  6. if (isLocalDeclaration()) {
  7. // we ignore the local variable declarations
  8. return;
  9. }
  10. MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  11. this.requestor.exitMethod(this.endStatementPosition, md.declarationSourceEnd);
  12. }
  13. /*

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

  1. @Override
  2. protected void consumeMethodDeclaration(boolean isNotAbstract, boolean isDefaultMethod) {
  3. if (!isNotAbstract) {
  4. popElement(K_METHOD_DELIMITER);
  5. }
  6. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);
  7. if (this.snapShotPtr > -1) {
  8. ASTNode top = this.astStack[this.astPtr];
  9. if (top instanceof AbstractMethodDeclaration) {
  10. // check positions for sanity:
  11. assert this.snapShotPositions[this.snapShotPtr] + 1 == ((AbstractMethodDeclaration) top).bodyStart : "Method positions should be consistent"; //$NON-NLS-1$
  12. popSnapShot();
  13. }
  14. }
  15. }
  16. @Override

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

  1. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);

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

  1. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);

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

  1. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);

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

  1. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);

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

  1. super.consumeMethodDeclaration(isNotAbstract, isDefaultMethod);

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

  1. super.consumeMethodDeclaration(isNotAbstract);

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

  1. consumeMethodDeclaration(true, false);
  2. break;
  3. consumeMethodDeclaration(true, true);
  4. break;
  5. consumeMethodDeclaration(false, false);
  6. break;

相关文章

Parser类方法