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

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

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

Parser.createIntersectionCastTypeReference介绍

暂无

代码示例

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

  1. protected void consumeCastExpressionLL1WithBounds() {
  2. //CastExpression ::= '(' Name AdditionalBoundsList ')' UnaryExpressionNotPlusMinus
  3. Expression cast;
  4. Expression exp;
  5. int length;
  6. exp = this.expressionStack[this.expressionPtr--];
  7. this.expressionLengthPtr --;
  8. TypeReference[] bounds = new TypeReference[length = this.expressionLengthStack[this.expressionLengthPtr]];
  9. System.arraycopy(this.expressionStack, this.expressionPtr -= (length - 1), bounds, 0, length);
  10. this.expressionStack[this.expressionPtr] =
  11. cast = new CastExpression(
  12. exp,
  13. createIntersectionCastTypeReference(bounds));
  14. this.expressionLengthStack[this.expressionLengthPtr] = 1;
  15. updateSourcePosition(cast);
  16. cast.sourceEnd=exp.sourceEnd;
  17. }
  18. protected void consumeCastExpressionWithGenericsArray() {

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

  1. protected void consumeCastExpressionLL1WithBounds() {
  2. //CastExpression ::= '(' Name AdditionalBoundsList ')' UnaryExpressionNotPlusMinus
  3. Expression cast;
  4. Expression exp;
  5. int length;
  6. exp = this.expressionStack[this.expressionPtr--];
  7. this.expressionLengthPtr --;
  8. TypeReference[] bounds = new TypeReference[length = this.expressionLengthStack[this.expressionLengthPtr]];
  9. System.arraycopy(this.expressionStack, this.expressionPtr -= (length - 1), bounds, 0, length);
  10. this.expressionStack[this.expressionPtr] =
  11. cast = new CastExpression(
  12. exp,
  13. createIntersectionCastTypeReference(bounds));
  14. this.expressionLengthStack[this.expressionLengthPtr] = 1;
  15. updateSourcePosition(cast);
  16. cast.sourceEnd=exp.sourceEnd;
  17. }
  18. protected void consumeCastExpressionWithGenericsArray() {

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

  1. protected void consumeCastExpressionLL1WithBounds() {
  2. //CastExpression ::= '(' Name AdditionalBoundsList ')' UnaryExpressionNotPlusMinus
  3. Expression cast;
  4. Expression exp;
  5. int length;
  6. exp = this.expressionStack[this.expressionPtr--];
  7. this.expressionLengthPtr --;
  8. TypeReference[] bounds = new TypeReference[length = this.expressionLengthStack[this.expressionLengthPtr]];
  9. System.arraycopy(this.expressionStack, this.expressionPtr -= (length - 1), bounds, 0, length);
  10. this.expressionStack[this.expressionPtr] =
  11. cast = new CastExpression(
  12. exp,
  13. createIntersectionCastTypeReference(bounds));
  14. this.expressionLengthStack[this.expressionLengthPtr] = 1;
  15. updateSourcePosition(cast);
  16. cast.sourceEnd=exp.sourceEnd;
  17. }
  18. protected void consumeCastExpressionWithGenericsArray() {

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

  1. protected void consumeCastExpressionLL1WithBounds() {
  2. //CastExpression ::= '(' Name AdditionalBoundsList ')' UnaryExpressionNotPlusMinus
  3. Expression cast;
  4. Expression exp;
  5. int length;
  6. exp = this.expressionStack[this.expressionPtr--];
  7. this.expressionLengthPtr --;
  8. TypeReference[] bounds = new TypeReference[length = this.expressionLengthStack[this.expressionLengthPtr]];
  9. System.arraycopy(this.expressionStack, this.expressionPtr -= (length - 1), bounds, 0, length);
  10. this.expressionStack[this.expressionPtr] =
  11. cast = new CastExpression(
  12. exp,
  13. createIntersectionCastTypeReference(bounds));
  14. this.expressionLengthStack[this.expressionLengthPtr] = 1;
  15. updateSourcePosition(cast);
  16. cast.sourceEnd=exp.sourceEnd;
  17. }
  18. protected void consumeCastExpressionWithGenericsArray() {

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

  1. protected void consumeCastExpressionLL1WithBounds() {
  2. //CastExpression ::= '(' Name AdditionalBoundsList ')' UnaryExpressionNotPlusMinus
  3. Expression cast;
  4. Expression exp;
  5. int length;
  6. exp = this.expressionStack[this.expressionPtr--];
  7. this.expressionLengthPtr --;
  8. TypeReference[] bounds = new TypeReference[length = this.expressionLengthStack[this.expressionLengthPtr]];
  9. System.arraycopy(this.expressionStack, this.expressionPtr -= (length - 1), bounds, 0, length);
  10. this.expressionStack[this.expressionPtr] =
  11. cast = new CastExpression(
  12. exp,
  13. createIntersectionCastTypeReference(bounds));
  14. this.expressionLengthStack[this.expressionLengthPtr] = 1;
  15. updateSourcePosition(cast);
  16. cast.sourceEnd=exp.sourceEnd;
  17. }
  18. protected void consumeCastExpressionWithGenericsArray() {

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

  1. protected void consumeCastExpressionLL1WithBounds() {
  2. //CastExpression ::= '(' Name AdditionalBoundsList ')' UnaryExpressionNotPlusMinus
  3. Expression cast;
  4. Expression exp;
  5. int length;
  6. exp = this.expressionStack[this.expressionPtr--];
  7. this.expressionLengthPtr --;
  8. TypeReference[] bounds = new TypeReference[length = this.expressionLengthStack[this.expressionLengthPtr]];
  9. System.arraycopy(this.expressionStack, this.expressionPtr -= (length - 1), bounds, 0, length);
  10. this.expressionStack[this.expressionPtr] =
  11. cast = new CastExpression(
  12. exp,
  13. createIntersectionCastTypeReference(bounds));
  14. this.expressionLengthStack[this.expressionLengthPtr] = 1;
  15. updateSourcePosition(cast);
  16. cast.sourceEnd=exp.sourceEnd;
  17. }
  18. protected void consumeCastExpressionWithGenericsArray() {

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

  1. protected void consumeCastExpressionLL1WithBounds() {
  2. //CastExpression ::= '(' Name AdditionalBoundsList ')' UnaryExpressionNotPlusMinus
  3. Expression cast;
  4. Expression exp;
  5. int length;
  6. exp = this.expressionStack[this.expressionPtr--];
  7. this.expressionLengthPtr --;
  8. TypeReference[] bounds = new TypeReference[length = this.expressionLengthStack[this.expressionLengthPtr]];
  9. System.arraycopy(this.expressionStack, this.expressionPtr -= (length - 1), bounds, 0, length);
  10. this.expressionStack[this.expressionPtr] =
  11. cast = new CastExpression(
  12. exp,
  13. createIntersectionCastTypeReference(bounds));
  14. this.expressionLengthStack[this.expressionLengthPtr] = 1;
  15. updateSourcePosition(cast);
  16. cast.sourceEnd=exp.sourceEnd;
  17. }
  18. protected void consumeCastExpressionWithGenericsArray() {

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

  1. protected void consumeCastExpressionLL1WithBounds() {
  2. //CastExpression ::= '(' Name AdditionalBoundsList ')' UnaryExpressionNotPlusMinus
  3. Expression cast;
  4. Expression exp;
  5. int length;
  6. exp = this.expressionStack[this.expressionPtr--];
  7. this.expressionLengthPtr --;
  8. TypeReference[] bounds = new TypeReference[length = this.expressionLengthStack[this.expressionLengthPtr]];
  9. System.arraycopy(this.expressionStack, this.expressionPtr -= (length - 1), bounds, 0, length);
  10. this.expressionStack[this.expressionPtr] =
  11. cast = new CastExpression(
  12. exp,
  13. createIntersectionCastTypeReference(bounds));
  14. this.expressionLengthStack[this.expressionLengthPtr] = 1;
  15. updateSourcePosition(cast);
  16. cast.sourceEnd=exp.sourceEnd;
  17. }
  18. protected void consumeCastExpressionWithGenericsArray() {

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

  1. protected void consumeCastExpressionWithPrimitiveType() {
  2. // CastExpression ::= PushLPAREN PrimitiveType Dimsopt AdditionalBoundsListOpt PushRPAREN InsideCastExpression UnaryExpression
  3. //this.intStack : posOfLeftParen dim posOfRightParen
  4. TypeReference[] bounds = null;
  5. int additionalBoundsLength = this.genericsLengthStack[this.genericsLengthPtr--];
  6. if (additionalBoundsLength > 0) {
  7. bounds = new TypeReference[additionalBoundsLength + 1];
  8. this.genericsPtr -= additionalBoundsLength;
  9. System.arraycopy(this.genericsStack, this.genericsPtr + 1, bounds, 1, additionalBoundsLength);
  10. }
  11. //optimize the push/pop
  12. Expression exp;
  13. Expression cast;
  14. TypeReference castType;
  15. int end = this.intStack[this.intPtr--];
  16. if (additionalBoundsLength > 0) {
  17. bounds[0] = getTypeReference(this.intStack[this.intPtr--]);
  18. castType = createIntersectionCastTypeReference(bounds);
  19. } else {
  20. castType = getTypeReference(this.intStack[this.intPtr--]);
  21. }
  22. this.expressionStack[this.expressionPtr] = cast = new CastExpression(exp = this.expressionStack[this.expressionPtr], castType);
  23. castType.sourceEnd = end - 1;
  24. castType.sourceStart = (cast.sourceStart = this.intStack[this.intPtr--]) + 1;
  25. cast.sourceEnd = exp.sourceEnd;
  26. }
  27. protected void consumeCastExpressionWithQualifiedGenericsArray() {

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

  1. protected void consumeCastExpressionWithPrimitiveType() {
  2. // CastExpression ::= PushLPAREN PrimitiveType Dimsopt AdditionalBoundsListOpt PushRPAREN InsideCastExpression UnaryExpression
  3. //this.intStack : posOfLeftParen dim posOfRightParen
  4. TypeReference[] bounds = null;
  5. int additionalBoundsLength = this.genericsLengthStack[this.genericsLengthPtr--];
  6. if (additionalBoundsLength > 0) {
  7. bounds = new TypeReference[additionalBoundsLength + 1];
  8. this.genericsPtr -= additionalBoundsLength;
  9. System.arraycopy(this.genericsStack, this.genericsPtr + 1, bounds, 1, additionalBoundsLength);
  10. }
  11. //optimize the push/pop
  12. Expression exp;
  13. Expression cast;
  14. TypeReference castType;
  15. int end = this.intStack[this.intPtr--];
  16. if (additionalBoundsLength > 0) {
  17. bounds[0] = getTypeReference(this.intStack[this.intPtr--]);
  18. castType = createIntersectionCastTypeReference(bounds);
  19. } else {
  20. castType = getTypeReference(this.intStack[this.intPtr--]);
  21. }
  22. this.expressionStack[this.expressionPtr] = cast = new CastExpression(exp = this.expressionStack[this.expressionPtr], castType);
  23. castType.sourceEnd = end - 1;
  24. castType.sourceStart = (cast.sourceStart = this.intStack[this.intPtr--]) + 1;
  25. cast.sourceEnd = exp.sourceEnd;
  26. }
  27. protected void consumeCastExpressionWithQualifiedGenericsArray() {

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

  1. protected void consumeCastExpressionWithPrimitiveType() {
  2. // CastExpression ::= PushLPAREN PrimitiveType Dimsopt AdditionalBoundsListOpt PushRPAREN InsideCastExpression UnaryExpression
  3. //this.intStack : posOfLeftParen dim posOfRightParen
  4. TypeReference[] bounds = null;
  5. int additionalBoundsLength = this.genericsLengthStack[this.genericsLengthPtr--];
  6. if (additionalBoundsLength > 0) {
  7. bounds = new TypeReference[additionalBoundsLength + 1];
  8. this.genericsPtr -= additionalBoundsLength;
  9. System.arraycopy(this.genericsStack, this.genericsPtr + 1, bounds, 1, additionalBoundsLength);
  10. }
  11. //optimize the push/pop
  12. Expression exp;
  13. Expression cast;
  14. TypeReference castType;
  15. int end = this.intStack[this.intPtr--];
  16. if (additionalBoundsLength > 0) {
  17. bounds[0] = getTypeReference(this.intStack[this.intPtr--]);
  18. castType = createIntersectionCastTypeReference(bounds);
  19. } else {
  20. castType = getTypeReference(this.intStack[this.intPtr--]);
  21. }
  22. this.expressionStack[this.expressionPtr] = cast = new CastExpression(exp = this.expressionStack[this.expressionPtr], castType);
  23. castType.sourceEnd = end - 1;
  24. castType.sourceStart = (cast.sourceStart = this.intStack[this.intPtr--]) + 1;
  25. cast.sourceEnd = exp.sourceEnd;
  26. }
  27. protected void consumeCastExpressionWithQualifiedGenericsArray() {

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

  1. protected void consumeCastExpressionWithPrimitiveType() {
  2. // CastExpression ::= PushLPAREN PrimitiveType Dimsopt AdditionalBoundsListOpt PushRPAREN InsideCastExpression UnaryExpression
  3. //this.intStack : posOfLeftParen dim posOfRightParen
  4. TypeReference[] bounds = null;
  5. int additionalBoundsLength = this.genericsLengthStack[this.genericsLengthPtr--];
  6. if (additionalBoundsLength > 0) {
  7. bounds = new TypeReference[additionalBoundsLength + 1];
  8. this.genericsPtr -= additionalBoundsLength;
  9. System.arraycopy(this.genericsStack, this.genericsPtr + 1, bounds, 1, additionalBoundsLength);
  10. }
  11. //optimize the push/pop
  12. Expression exp;
  13. Expression cast;
  14. TypeReference castType;
  15. int end = this.intStack[this.intPtr--];
  16. if (additionalBoundsLength > 0) {
  17. bounds[0] = getTypeReference(this.intStack[this.intPtr--]);
  18. castType = createIntersectionCastTypeReference(bounds);
  19. } else {
  20. castType = getTypeReference(this.intStack[this.intPtr--]);
  21. }
  22. this.expressionStack[this.expressionPtr] = cast = new CastExpression(exp = this.expressionStack[this.expressionPtr], castType);
  23. castType.sourceEnd = end - 1;
  24. castType.sourceStart = (cast.sourceStart = this.intStack[this.intPtr--]) + 1;
  25. cast.sourceEnd = exp.sourceEnd;
  26. }
  27. protected void consumeCastExpressionWithQualifiedGenericsArray() {

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

  1. castType = createIntersectionCastTypeReference(bounds);

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

  1. castType = createIntersectionCastTypeReference(bounds);

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

  1. protected void consumeCastExpressionWithGenericsArray() {
  2. // CastExpression ::= PushLPAREN Name TypeArguments Dimsopt AdditionalBoundsListOpt PushRPAREN InsideCastExpression UnaryExpressionNotPlusMinus
  3. TypeReference[] bounds = null;
  4. int additionalBoundsLength = this.genericsLengthStack[this.genericsLengthPtr--];
  5. if (additionalBoundsLength > 0) {
  6. bounds = new TypeReference[additionalBoundsLength + 1];
  7. this.genericsPtr -= additionalBoundsLength;
  8. System.arraycopy(this.genericsStack, this.genericsPtr + 1, bounds, 1, additionalBoundsLength);
  9. }
  10. Expression exp;
  11. Expression cast;
  12. TypeReference castType;
  13. int end = this.intStack[this.intPtr--];
  14. int dim = this.intStack[this.intPtr--];
  15. pushOnGenericsIdentifiersLengthStack(this.identifierLengthStack[this.identifierLengthPtr]);
  16. if (additionalBoundsLength > 0) {
  17. bounds[0] = getTypeReference(dim);
  18. castType = createIntersectionCastTypeReference(bounds);
  19. } else {
  20. castType = getTypeReference(dim);
  21. }
  22. this.expressionStack[this.expressionPtr] = cast = new CastExpression(exp = this.expressionStack[this.expressionPtr], castType);
  23. this.intPtr--; // pop position of '<'
  24. castType.sourceEnd = end - 1;
  25. castType.sourceStart = (cast.sourceStart = this.intStack[this.intPtr--]) + 1;
  26. cast.sourceEnd = exp.sourceEnd;
  27. }
  28. protected void consumeCastExpressionWithNameArray() {

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

  1. castType = createIntersectionCastTypeReference(bounds);

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

  1. protected void consumeCastExpressionWithGenericsArray() {
  2. // CastExpression ::= PushLPAREN Name TypeArguments Dimsopt AdditionalBoundsListOpt PushRPAREN InsideCastExpression UnaryExpressionNotPlusMinus
  3. TypeReference[] bounds = null;
  4. int additionalBoundsLength = this.genericsLengthStack[this.genericsLengthPtr--];
  5. if (additionalBoundsLength > 0) {
  6. bounds = new TypeReference[additionalBoundsLength + 1];
  7. this.genericsPtr -= additionalBoundsLength;
  8. System.arraycopy(this.genericsStack, this.genericsPtr + 1, bounds, 1, additionalBoundsLength);
  9. }
  10. Expression exp;
  11. Expression cast;
  12. TypeReference castType;
  13. int end = this.intStack[this.intPtr--];
  14. int dim = this.intStack[this.intPtr--];
  15. pushOnGenericsIdentifiersLengthStack(this.identifierLengthStack[this.identifierLengthPtr]);
  16. if (additionalBoundsLength > 0) {
  17. bounds[0] = getTypeReference(dim);
  18. castType = createIntersectionCastTypeReference(bounds);
  19. } else {
  20. castType = getTypeReference(dim);
  21. }
  22. this.expressionStack[this.expressionPtr] = cast = new CastExpression(exp = this.expressionStack[this.expressionPtr], castType);
  23. this.intPtr--; // pop position of '<'
  24. castType.sourceEnd = end - 1;
  25. castType.sourceStart = (cast.sourceStart = this.intStack[this.intPtr--]) + 1;
  26. cast.sourceEnd = exp.sourceEnd;
  27. }
  28. protected void consumeCastExpressionWithNameArray() {

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

  1. castType = createIntersectionCastTypeReference(bounds);
  2. } else {
  3. castType = getTypeReference(this.intStack[this.intPtr--]);

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

  1. castType = createIntersectionCastTypeReference(bounds);
  2. } else {
  3. castType = getTypeReference(this.intStack[this.intPtr--]);

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

  1. castType = createIntersectionCastTypeReference(bounds);
  2. } else {
  3. castType = getTypeReference(this.intStack[this.intPtr--]);

相关文章

Parser类方法