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

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

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

Parser.getAnnotationsOnDimensions介绍

暂无

代码示例

代码示例来源: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: 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: 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: 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.tycho/org.eclipse.jdt.core

0,
  length);
Annotation[][] annotationsOnDimensions = getAnnotationsOnDimensions(length);
arrayAllocation.annotationsOnDimensions = annotationsOnDimensions;
arrayAllocation.type = getTypeReference(0);

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

0,
  length);
Annotation[][] annotationsOnDimensions = getAnnotationsOnDimensions(length);
arrayAllocation.annotationsOnDimensions = annotationsOnDimensions;

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

0,
  length);
Annotation[][] annotationsOnDimensions = getAnnotationsOnDimensions(length);
arrayAllocation.annotationsOnDimensions = annotationsOnDimensions;
arrayAllocation.type = getTypeReference(0);

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

0,
  length);
Annotation[][] annotationsOnDimensions = getAnnotationsOnDimensions(length);
arrayAllocation.annotationsOnDimensions = annotationsOnDimensions;
arrayAllocation.type = getTypeReference(0);

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

0,
  length);
Annotation[][] annotationsOnDimensions = getAnnotationsOnDimensions(length);
arrayAllocation.annotationsOnDimensions = annotationsOnDimensions;
arrayAllocation.type = getTypeReference(0);

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

0,
  length);
Annotation[][] annotationsOnDimensions = getAnnotationsOnDimensions(length);
arrayAllocation.annotationsOnDimensions = annotationsOnDimensions;
arrayAllocation.type = getTypeReference(0);

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

int end = this.intStack[this.intPtr--];
int dim = this.intStack[this.intPtr--];
Annotation [][] annotationsOnDimensions = dim == 0 ? null : getAnnotationsOnDimensions(dim);
TypeReference rightSide = getTypeReference(0);
castType = computeQualifiedGenericsFromRightSide(rightSide, dim, annotationsOnDimensions);

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

int end = this.intStack[this.intPtr--];
int dim = this.intStack[this.intPtr--];
Annotation [][] annotationsOnDimensions = dim == 0 ? null : getAnnotationsOnDimensions(dim);
TypeReference rightSide = getTypeReference(0);
castType = computeQualifiedGenericsFromRightSide(rightSide, dim, annotationsOnDimensions);

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

int end = this.intStack[this.intPtr--];
int dim = this.intStack[this.intPtr--];
Annotation [][] annotationsOnDimensions = dim == 0 ? null : getAnnotationsOnDimensions(dim);
TypeReference rightSide = getTypeReference(0);
castType = computeQualifiedGenericsFromRightSide(rightSide, dim, annotationsOnDimensions);

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

int end = this.intStack[this.intPtr--];
int dim = this.intStack[this.intPtr--];
Annotation [][] annotationsOnDimensions = dim == 0 ? null : getAnnotationsOnDimensions(dim);
TypeReference rightSide = getTypeReference(0);
castType = computeQualifiedGenericsFromRightSide(rightSide, dim, annotationsOnDimensions);

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

int end = this.intStack[this.intPtr--];
int dim = this.intStack[this.intPtr--];
Annotation [][] annotationsOnDimensions = dim == 0 ? null : getAnnotationsOnDimensions(dim);
TypeReference rightSide = getTypeReference(0);
castType = computeQualifiedGenericsFromRightSide(rightSide, dim, annotationsOnDimensions);

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

int end = this.intStack[this.intPtr--];
int dim = this.intStack[this.intPtr--];
Annotation [][] annotationsOnDimensions = dim == 0 ? null : getAnnotationsOnDimensions(dim);
TypeReference rightSide = getTypeReference(0);
castType = computeQualifiedGenericsFromRightSide(rightSide, dim, annotationsOnDimensions);

相关文章

Parser类方法