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

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

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

Parser.resetModifiers介绍

[英]Reset modifiers buffer and comment stack. Should be call only for nodes that claim both.
[中]重置修改器缓冲区和注释堆栈。应该仅对同时声明这两个属性的节点进行调用。

代码示例

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

protected void consumePackageComment() {
  // get possible comment for syntax since 1.5
  if(this.options.sourceLevel >= ClassFileConstants.JDK1_5) {
    checkComment();
    resetModifiers();
  }
}
protected void consumePackageDeclaration() {

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

protected void resetModifiers() {
    pushOnCommentsStack(0, this.scanner.commentPtr);
    super.resetModifiers();
  }
}

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

protected void consumePackageComment() {
  // get possible comment for syntax since 1.5
  if(this.options.sourceLevel >= ClassFileConstants.JDK1_5) {
    checkComment();
    resetModifiers();
  }
}
protected void consumePackageDeclaration() {

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

protected void consumeOnlySynchronized() {
  // OnlySynchronized ::= 'synchronized'
  pushOnIntStack(this.synchronizedBlockSourceStart);
  resetModifiers();
  this.expressionLengthPtr--;
}
protected void consumeOnlyTypeArguments() {

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

protected void consumeOnlySynchronized() {
  // OnlySynchronized ::= 'synchronized'
  pushOnIntStack(this.synchronizedBlockSourceStart);
  resetModifiers();
  this.expressionLengthPtr--;
}
protected void consumeOnlyTypeArguments() {

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

protected void resetModifiers() {
    pushOnCommentsStack(0, this.scanner.commentPtr);
    super.resetModifiers();
  }
}

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

protected void consumeModifiers() {
  int savedModifiersSourceStart = this.modifiersSourceStart;
  checkComment(); // might update modifiers with AccDeprecated
  pushOnIntStack(this.modifiers); // modifiers
  if (this.modifiersSourceStart >= savedModifiersSourceStart) {
    this.modifiersSourceStart = savedModifiersSourceStart;
  }
  pushOnIntStack(this.modifiersSourceStart);
  resetModifiers();
}
protected void consumeModifiers2() {

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

protected void consumePushModifiers() {
  pushOnIntStack(this.modifiers); // modifiers
  pushOnIntStack(this.modifiersSourceStart);
  resetModifiers();
  pushOnExpressionStackLengthStack(0);
}
protected void consumePushCombineModifiers() {

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

protected void consumeModifiers() {
  int savedModifiersSourceStart = this.modifiersSourceStart;
  checkComment(); // might update modifiers with AccDeprecated
  pushOnIntStack(this.modifiers); // modifiers
  if (this.modifiersSourceStart >= savedModifiersSourceStart) {
    this.modifiersSourceStart = savedModifiersSourceStart;
  }
  pushOnIntStack(this.modifiersSourceStart);
  resetModifiers();
}
protected void consumeModifiers2() {

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

protected void consumePushModifiers() {
  pushOnIntStack(this.modifiers); // modifiers
  pushOnIntStack(this.modifiersSourceStart);
  resetModifiers();
  pushOnExpressionStackLengthStack(0);
}
protected void consumePushCombineModifiers() {

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

protected void consumePushRealModifiers() {
  checkComment(); // might update modifiers with AccDeprecated
  pushOnIntStack(this.modifiers); // modifiers
  pushOnIntStack(this.modifiersSourceStart);
  resetModifiers();
}
protected void consumeQualifiedName() {

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

protected void consumeModifiers() {
  int savedModifiersSourceStart = this.modifiersSourceStart;
  checkComment(); // might update modifiers with AccDeprecated
  pushOnIntStack(this.modifiers); // modifiers
  if (this.modifiersSourceStart >= savedModifiersSourceStart) {
    this.modifiersSourceStart = savedModifiersSourceStart;
  }
  pushOnIntStack(this.modifiersSourceStart);
  resetModifiers();
}
protected void consumeModifiers2() {

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

protected void consumePushModifiers() {
  pushOnIntStack(this.modifiers); // modifiers
  pushOnIntStack(this.modifiersSourceStart);
  resetModifiers();
  pushOnExpressionStackLengthStack(0);
}
protected void consumePushModifiersForHeader() {

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

protected void consumeDiet() {
  // Diet ::= $empty
  checkComment();
  pushOnIntStack(this.modifiersSourceStart); // push the start position of a javadoc comment if there is one
  resetModifiers();
  jumpOverMethodBody();
}
protected void consumeDims() {

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

protected void consumePushModifiers() {
  pushOnIntStack(this.modifiers); // modifiers
  pushOnIntStack(this.modifiersSourceStart);
  resetModifiers();
  pushOnExpressionStackLengthStack(0);
}
protected void consumePushCombineModifiers() {

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

protected void consumePushRealModifiers() {
  checkComment(); // might update modifiers with AccDeprecated
  pushOnIntStack(this.modifiers); // modifiers
  pushOnIntStack(this.modifiersSourceStart);
  resetModifiers();
}
protected void consumeQualifiedName(boolean qualifiedNameIsAnnotated) {

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

protected void consumeDiet() {
  // Diet ::= $empty
  checkComment();
  pushOnIntStack(this.modifiersSourceStart); // push the start position of a javadoc comment if there is one
  resetModifiers();
  jumpOverMethodBody();
}
protected void consumeDims() {

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

protected void consumePushRealModifiers() {
  checkComment(); // might update modifiers with AccDeprecated
  pushOnIntStack(this.modifiers); // modifiers
  pushOnIntStack(this.modifiersSourceStart);
  resetModifiers();
}
protected void consumeQualifiedName(boolean qualifiedNameIsAnnotated) {

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

protected void consumePushModifiersForHeader() {
  checkComment(); // might update modifiers with AccDeprecated
  pushOnIntStack(this.modifiers); // modifiers
  pushOnIntStack(this.modifiersSourceStart);
  resetModifiers();
  pushOnExpressionStackLengthStack(0);
}
protected void consumePushPosition() {

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

protected void consumeDefaultModifiers() {
  checkComment(); // might update modifiers with AccDeprecated
  pushOnIntStack(this.modifiers); // modifiers
  pushOnIntStack(
    this.modifiersSourceStart >= 0 ? this.modifiersSourceStart : this.scanner.startPosition);
  resetModifiers();
  pushOnExpressionStackLengthStack(0); // no annotation
}
protected void consumeDiet() {

相关文章

Parser类方法