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

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

本文整理了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

  1. protected void consumeMethodHeaderExtendedDims() {
  2. // MethodHeaderExtendedDims ::= Dimsopt
  3. // now we update the returnType of the method
  4. MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  5. int extendedDimensions = this.intStack[this.intPtr--];
  6. if(md.isAnnotationMethod()) {
  7. ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  8. }
  9. if (extendedDimensions != 0) {
  10. md.sourceEnd = this.endPosition;
  11. md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
  12. md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
  13. if (this.currentToken == TokenNameLBRACE){
  14. md.bodyStart = this.endPosition + 1;
  15. }
  16. // recovery
  17. if (this.currentElement != null){
  18. this.lastCheckPoint = md.bodyStart;
  19. }
  20. }
  21. }
  22. protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

  1. protected void consumeMethodHeaderExtendedDims() {
  2. // MethodHeaderExtendedDims ::= Dimsopt
  3. // now we update the returnType of the method
  4. MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  5. int extendedDimensions = this.intStack[this.intPtr--];
  6. if(md.isAnnotationMethod()) {
  7. ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  8. }
  9. if (extendedDimensions != 0) {
  10. md.sourceEnd = this.endPosition;
  11. md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
  12. md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
  13. if (this.currentToken == TokenNameLBRACE){
  14. md.bodyStart = this.endPosition + 1;
  15. }
  16. // recovery
  17. if (this.currentElement != null){
  18. this.lastCheckPoint = md.bodyStart;
  19. }
  20. }
  21. }
  22. protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

  1. protected void consumeMethodHeaderExtendedDims() {
  2. // MethodHeaderExtendedDims ::= Dimsopt
  3. // now we update the returnType of the method
  4. MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  5. int extendedDimensions = this.intStack[this.intPtr--];
  6. if(md.isAnnotationMethod()) {
  7. ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  8. }
  9. if (extendedDimensions != 0) {
  10. md.sourceEnd = this.endPosition;
  11. md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
  12. md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
  13. if (this.currentToken == TokenNameLBRACE){
  14. md.bodyStart = this.endPosition + 1;
  15. }
  16. // recovery
  17. if (this.currentElement != null){
  18. this.lastCheckPoint = md.bodyStart;
  19. }
  20. }
  21. }
  22. protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

  1. protected void consumeMethodHeaderExtendedDims() {
  2. // MethodHeaderExtendedDims ::= Dimsopt
  3. // now we update the returnType of the method
  4. MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  5. int extendedDimensions = this.intStack[this.intPtr--];
  6. if(md.isAnnotationMethod()) {
  7. ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  8. }
  9. if (extendedDimensions != 0) {
  10. md.sourceEnd = this.endPosition;
  11. md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
  12. md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
  13. if (this.currentToken == TokenNameLBRACE){
  14. md.bodyStart = this.endPosition + 1;
  15. }
  16. // recovery
  17. if (this.currentElement != null){
  18. this.lastCheckPoint = md.bodyStart;
  19. }
  20. }
  21. }
  22. protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

  1. protected void consumeMethodHeaderExtendedDims() {
  2. // MethodHeaderExtendedDims ::= Dimsopt
  3. // now we update the returnType of the method
  4. MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  5. int extendedDimensions = this.intStack[this.intPtr--];
  6. if(md.isAnnotationMethod()) {
  7. ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  8. }
  9. if (extendedDimensions != 0) {
  10. md.sourceEnd = this.endPosition;
  11. md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
  12. md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
  13. if (this.currentToken == TokenNameLBRACE){
  14. md.bodyStart = this.endPosition + 1;
  15. }
  16. // recovery
  17. if (this.currentElement != null){
  18. this.lastCheckPoint = md.bodyStart;
  19. }
  20. }
  21. }
  22. protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

  1. protected void consumeMethodHeaderExtendedDims() {
  2. // MethodHeaderExtendedDims ::= Dimsopt
  3. // now we update the returnType of the method
  4. MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  5. int extendedDimensions = this.intStack[this.intPtr--];
  6. if(md.isAnnotationMethod()) {
  7. ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  8. }
  9. if (extendedDimensions != 0) {
  10. md.sourceEnd = this.endPosition;
  11. md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
  12. md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
  13. if (this.currentToken == TokenNameLBRACE){
  14. md.bodyStart = this.endPosition + 1;
  15. }
  16. // recovery
  17. if (this.currentElement != null){
  18. this.lastCheckPoint = md.bodyStart;
  19. }
  20. }
  21. }
  22. protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

  1. protected void consumeMethodHeaderExtendedDims() {
  2. // MethodHeaderExtendedDims ::= Dimsopt
  3. // now we update the returnType of the method
  4. MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  5. int extendedDimensions = this.intStack[this.intPtr--];
  6. if(md.isAnnotationMethod()) {
  7. ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  8. }
  9. if (extendedDimensions != 0) {
  10. md.sourceEnd = this.endPosition;
  11. md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
  12. md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
  13. if (this.currentToken == TokenNameLBRACE){
  14. md.bodyStart = this.endPosition + 1;
  15. }
  16. // recovery
  17. if (this.currentElement != null){
  18. this.lastCheckPoint = md.bodyStart;
  19. }
  20. }
  21. }
  22. protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

  1. protected void consumeMethodHeaderExtendedDims() {
  2. // MethodHeaderExtendedDims ::= Dimsopt
  3. // now we update the returnType of the method
  4. MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr];
  5. int extendedDimensions = this.intStack[this.intPtr--];
  6. if(md.isAnnotationMethod()) {
  7. ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions;
  8. }
  9. if (extendedDimensions != 0) {
  10. md.sourceEnd = this.endPosition;
  11. md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
  12. md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
  13. if (this.currentToken == TokenNameLBRACE){
  14. md.bodyStart = this.endPosition + 1;
  15. }
  16. // recovery
  17. if (this.currentElement != null){
  18. this.lastCheckPoint = md.bodyStart;
  19. }
  20. }
  21. }
  22. protected void consumeMethodHeaderName(boolean isAnnotationMethod) {

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

  1. 0,
  2. length);
  3. Annotation[][] annotationsOnDimensions = getAnnotationsOnDimensions(length);
  4. arrayAllocation.annotationsOnDimensions = annotationsOnDimensions;
  5. arrayAllocation.type = getTypeReference(0);

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

  1. 0,
  2. length);
  3. Annotation[][] annotationsOnDimensions = getAnnotationsOnDimensions(length);
  4. arrayAllocation.annotationsOnDimensions = annotationsOnDimensions;

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

  1. 0,
  2. length);
  3. Annotation[][] annotationsOnDimensions = getAnnotationsOnDimensions(length);
  4. arrayAllocation.annotationsOnDimensions = annotationsOnDimensions;
  5. arrayAllocation.type = getTypeReference(0);

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

  1. 0,
  2. length);
  3. Annotation[][] annotationsOnDimensions = getAnnotationsOnDimensions(length);
  4. arrayAllocation.annotationsOnDimensions = annotationsOnDimensions;
  5. arrayAllocation.type = getTypeReference(0);

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

  1. 0,
  2. length);
  3. Annotation[][] annotationsOnDimensions = getAnnotationsOnDimensions(length);
  4. arrayAllocation.annotationsOnDimensions = annotationsOnDimensions;
  5. arrayAllocation.type = getTypeReference(0);

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

  1. 0,
  2. length);
  3. Annotation[][] annotationsOnDimensions = getAnnotationsOnDimensions(length);
  4. arrayAllocation.annotationsOnDimensions = annotationsOnDimensions;
  5. arrayAllocation.type = getTypeReference(0);

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

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

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

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

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

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

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

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

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

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

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

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

相关文章

Parser类方法