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

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

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

Parser.augmentTypeWithAdditionalDimensions介绍

暂无

代码示例

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

protected void consumeMethodHeaderExtendedDims() {
  // MethodHeaderExtendedDims ::= Dimsopt
  // now we update the returnType of the method
  MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  int extendedDimensions = this.intStack[this.intPtr--];
  if(md.isAnnotationMethod()) {
    ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  }
  if (extendedDimensions != 0) {
    md.sourceEnd = this.endPosition;
    md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
    md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
    if (this.currentToken == TokenNameLBRACE){
      md.bodyStart = this.endPosition + 1;
    }
    // recovery
    if (this.currentElement != null){
      this.lastCheckPoint = md.bodyStart;
    }
  }
}
protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

protected void consumeMethodHeaderExtendedDims() {
  // MethodHeaderExtendedDims ::= Dimsopt
  // now we update the returnType of the method
  MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  int extendedDimensions = this.intStack[this.intPtr--];
  if(md.isAnnotationMethod()) {
    ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  }
  if (extendedDimensions != 0) {
    md.sourceEnd = this.endPosition;
    md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
    md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
    if (this.currentToken == TokenNameLBRACE){
      md.bodyStart = this.endPosition + 1;
    }
    // recovery
    if (this.currentElement != null){
      this.lastCheckPoint = md.bodyStart;
    }
  }
}
protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

protected void consumeMethodHeaderExtendedDims() {
  // MethodHeaderExtendedDims ::= Dimsopt
  // now we update the returnType of the method
  MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  int extendedDimensions = this.intStack[this.intPtr--];
  if(md.isAnnotationMethod()) {
    ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  }
  if (extendedDimensions != 0) {
    md.sourceEnd = this.endPosition;
    md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
    md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
    if (this.currentToken == TokenNameLBRACE){
      md.bodyStart = this.endPosition + 1;
    }
    // recovery
    if (this.currentElement != null){
      this.lastCheckPoint = md.bodyStart;
    }
  }
}
protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

protected void consumeMethodHeaderExtendedDims() {
  // MethodHeaderExtendedDims ::= Dimsopt
  // now we update the returnType of the method
  MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  int extendedDimensions = this.intStack[this.intPtr--];
  if(md.isAnnotationMethod()) {
    ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  }
  if (extendedDimensions != 0) {
    md.sourceEnd = this.endPosition;
    md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
    md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
    if (this.currentToken == TokenNameLBRACE){
      md.bodyStart = this.endPosition + 1;
    }
    // recovery
    if (this.currentElement != null){
      this.lastCheckPoint = md.bodyStart;
    }
  }
}
protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

protected void consumeMethodHeaderExtendedDims() {
  // MethodHeaderExtendedDims ::= Dimsopt
  // now we update the returnType of the method
  MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  int extendedDimensions = this.intStack[this.intPtr--];
  if(md.isAnnotationMethod()) {
    ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  }
  if (extendedDimensions != 0) {
    md.sourceEnd = this.endPosition;
    md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
    md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
    if (this.currentToken == TokenNameLBRACE){
      md.bodyStart = this.endPosition + 1;
    }
    // recovery
    if (this.currentElement != null){
      this.lastCheckPoint = md.bodyStart;
    }
  }
}
protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

protected void consumeMethodHeaderExtendedDims() {
  // MethodHeaderExtendedDims ::= Dimsopt
  // now we update the returnType of the method
  MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  int extendedDimensions = this.intStack[this.intPtr--];
  if(md.isAnnotationMethod()) {
    ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  }
  if (extendedDimensions != 0) {
    md.sourceEnd = this.endPosition;
    md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
    md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
    if (this.currentToken == TokenNameLBRACE){
      md.bodyStart = this.endPosition + 1;
    }
    // recovery
    if (this.currentElement != null){
      this.lastCheckPoint = md.bodyStart;
    }
  }
}
protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

protected void consumeMethodHeaderExtendedDims() {
  // MethodHeaderExtendedDims ::= Dimsopt
  // now we update the returnType of the method
  MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  int extendedDimensions = this.intStack[this.intPtr--];
  if(md.isAnnotationMethod()) {
    ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  }
  if (extendedDimensions != 0) {
    md.sourceEnd = this.endPosition;
    md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
    md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
    if (this.currentToken == TokenNameLBRACE){
      md.bodyStart = this.endPosition + 1;
    }
    // recovery
    if (this.currentElement != null){
      this.lastCheckPoint = md.bodyStart;
    }
  }
}
protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

protected void consumeMethodHeaderExtendedDims() {
  // MethodHeaderExtendedDims ::= Dimsopt
  // now we update the returnType of the method
  MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  int extendedDimensions = this.intStack[this.intPtr--];
  if(md.isAnnotationMethod()) {
    ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  }
  if (extendedDimensions != 0) {
    md.sourceEnd = this.endPosition;
    md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
    md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
    if (this.currentToken == TokenNameLBRACE){
      md.bodyStart = this.endPosition + 1;
    }
    // recovery
    if (this.currentElement != null){
      this.lastCheckPoint = md.bodyStart;
    }
  }
}
protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

@Override
protected TypeReference augmentTypeWithAdditionalDimensions(TypeReference typeRef, int additionalDimensions, Annotation [][] additionalAnnotations, boolean isVarargs) {
  TypeReference result = super.augmentTypeWithAdditionalDimensions(typeRef, additionalDimensions, additionalAnnotations, isVarargs);
   if (this.nodeSet.removePossibleMatch(typeRef) != null)
    this.nodeSet.addPossibleMatch(result);
   else if (this.nodeSet.removeTrustedMatch(typeRef) != null)
    this.nodeSet.addTrustedMatch(result, true);
  return result;
}
@Override

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

protected TypeReference augmentTypeWithAdditionalDimensions(TypeReference typeRef, int additionalDimensions, Annotation [][] additionalAnnotations, boolean isVarargs) {
  TypeReference result = super.augmentTypeWithAdditionalDimensions(typeRef, additionalDimensions, additionalAnnotations, isVarargs);
   if (this.nodeSet.removePossibleMatch(typeRef) != null)
    this.nodeSet.addPossibleMatch(result);
   else if (this.nodeSet.removeTrustedMatch(typeRef) != null)
    this.nodeSet.addTrustedMatch(result, true);
  return result;
}
protected TypeReference getTypeReference(int dim) {

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

protected TypeReference augmentTypeWithAdditionalDimensions(TypeReference typeRef, int additionalDimensions, Annotation [][] additionalAnnotations, boolean isVarargs) {
  TypeReference result = super.augmentTypeWithAdditionalDimensions(typeRef, additionalDimensions, additionalAnnotations, isVarargs);
   if (this.nodeSet.removePossibleMatch(typeRef) != null)
    this.nodeSet.addPossibleMatch(result);
   else if (this.nodeSet.removeTrustedMatch(typeRef) != null)
    this.nodeSet.addTrustedMatch(result, true);
  return result;
}
protected TypeReference getTypeReference(int dim) {

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

protected TypeReference augmentTypeWithAdditionalDimensions(TypeReference typeRef, int additionalDimensions, Annotation [][] additionalAnnotations, boolean isVarargs) {
  TypeReference result = super.augmentTypeWithAdditionalDimensions(typeRef, additionalDimensions, additionalAnnotations, isVarargs);
   if (this.nodeSet.removePossibleMatch(typeRef) != null)
    this.nodeSet.addPossibleMatch(result);
   else if (this.nodeSet.removeTrustedMatch(typeRef) != null)
    this.nodeSet.addTrustedMatch(result, true);
  return result;
}
protected TypeReference getTypeReference(int dim) {

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

protected TypeReference augmentTypeWithAdditionalDimensions(TypeReference typeRef, int additionalDimensions, Annotation [][] additionalAnnotations, boolean isVarargs) {
  TypeReference result = super.augmentTypeWithAdditionalDimensions(typeRef, additionalDimensions, additionalAnnotations, isVarargs);
   if (this.nodeSet.removePossibleMatch(typeRef) != null)
    this.nodeSet.addPossibleMatch(result);
   else if (this.nodeSet.removeTrustedMatch(typeRef) != null)
    this.nodeSet.addTrustedMatch(result, true);
  return result;
}
protected TypeReference getTypeReference(int dim) {

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

TypeReference type = (TypeReference) this.astStack[this.astPtr--];
if (extendedDimensions > 0) {
  type = augmentTypeWithAdditionalDimensions(type, extendedDimensions, null, false);
  type.sourceEnd = this.endPosition;

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

TypeReference type = (TypeReference) this.astStack[this.astPtr--];
if (extendedDimensions > 0) {
  type = augmentTypeWithAdditionalDimensions(type, extendedDimensions, null, false);
  type.sourceEnd = this.endPosition;

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

TypeReference type = (TypeReference) this.astStack[this.astPtr--];
if (extendedDimensions > 0) {
  type = augmentTypeWithAdditionalDimensions(type, extendedDimensions, null, false);
  type.sourceEnd = this.endPosition;

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

TypeReference type = (TypeReference) this.astStack[this.astPtr--];
if (extendedDimensions > 0) {
  type = augmentTypeWithAdditionalDimensions(type, extendedDimensions, null, false);
  type.sourceEnd = this.endPosition;

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

TypeReference type = (TypeReference) this.astStack[this.astPtr--];
if (extendedDimensions > 0) {
  type = augmentTypeWithAdditionalDimensions(type, extendedDimensions, null, false);
  type.sourceEnd = this.endPosition;

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

TypeReference type = (TypeReference) this.astStack[this.astPtr--];
if (extendedDimensions > 0) {
  type = augmentTypeWithAdditionalDimensions(type, extendedDimensions, null, false);
  type.sourceEnd = this.endPosition;

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

type = augmentTypeWithAdditionalDimensions(type, extraDims, annotationsOnExtendedDimensions, false);

相关文章

Parser类方法