Lines 3316-3322
Link Here
|
3316 |
protected void consumeInsideCastExpressionWithQualifiedGenerics() { |
3316 |
protected void consumeInsideCastExpressionWithQualifiedGenerics() { |
3317 |
// InsideCastExpressionWithQualifiedGenerics ::= $empty |
3317 |
// InsideCastExpressionWithQualifiedGenerics ::= $empty |
3318 |
} |
3318 |
} |
3319 |
protected void consumeInstanceOfExpression(int op) { |
3319 |
protected void consumeInstanceOfExpression() { |
3320 |
// RelationalExpression ::= RelationalExpression 'instanceof' ReferenceType |
3320 |
// RelationalExpression ::= RelationalExpression 'instanceof' ReferenceType |
3321 |
//optimize the push/pop |
3321 |
//optimize the push/pop |
3322 |
|
3322 |
|
Lines 3325-3342
Link Here
|
3325 |
this.expressionStack[this.expressionPtr] = exp = |
3325 |
this.expressionStack[this.expressionPtr] = exp = |
3326 |
new InstanceOfExpression( |
3326 |
new InstanceOfExpression( |
3327 |
this.expressionStack[this.expressionPtr], |
3327 |
this.expressionStack[this.expressionPtr], |
3328 |
getTypeReference(this.intStack[this.intPtr--]), |
3328 |
getTypeReference(this.intStack[this.intPtr--])); |
3329 |
op); |
|
|
3330 |
if (exp.sourceEnd == 0) { |
3329 |
if (exp.sourceEnd == 0) { |
3331 |
//array on base type.... |
3330 |
//array on base type.... |
3332 |
exp.sourceEnd = this.scanner.startPosition - 1; |
3331 |
exp.sourceEnd = this.scanner.startPosition - 1; |
3333 |
} |
3332 |
} |
3334 |
//the scanner is on the next token already.... |
3333 |
//the scanner is on the next token already.... |
3335 |
} |
3334 |
} |
3336 |
/** |
3335 |
protected void consumeInstanceOfExpressionWithName() { |
3337 |
* @param op |
|
|
3338 |
*/ |
3339 |
protected void consumeInstanceOfExpressionWithName(int op) { |
3340 |
// RelationalExpression_NotName ::= Name instanceof ReferenceType |
3336 |
// RelationalExpression_NotName ::= Name instanceof ReferenceType |
3341 |
//optimize the push/pop |
3337 |
//optimize the push/pop |
3342 |
|
3338 |
|
Lines 3347-3354
Link Here
|
3347 |
this.expressionStack[this.expressionPtr] = exp = |
3343 |
this.expressionStack[this.expressionPtr] = exp = |
3348 |
new InstanceOfExpression( |
3344 |
new InstanceOfExpression( |
3349 |
this.expressionStack[this.expressionPtr], |
3345 |
this.expressionStack[this.expressionPtr], |
3350 |
reference, |
3346 |
reference); |
3351 |
op); |
|
|
3352 |
if (exp.sourceEnd == 0) { |
3347 |
if (exp.sourceEnd == 0) { |
3353 |
//array on base type.... |
3348 |
//array on base type.... |
3354 |
exp.sourceEnd = this.scanner.startPosition - 1; |
3349 |
exp.sourceEnd = this.scanner.startPosition - 1; |
Lines 5458-5464
Link Here
|
5458 |
break; |
5453 |
break; |
5459 |
|
5454 |
|
5460 |
case 424 : if (DEBUG) { System.out.println("InstanceofExpression ::= InstanceofExpression instanceof"); } //$NON-NLS-1$ |
5455 |
case 424 : if (DEBUG) { System.out.println("InstanceofExpression ::= InstanceofExpression instanceof"); } //$NON-NLS-1$ |
5461 |
consumeInstanceOfExpression(OperatorIds.INSTANCEOF); |
5456 |
consumeInstanceOfExpression(); |
5462 |
break; |
5457 |
break; |
5463 |
|
5458 |
|
5464 |
case 426 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL..."); } //$NON-NLS-1$ |
5459 |
case 426 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL..."); } //$NON-NLS-1$ |
Lines 5982-5992
Link Here
|
5982 |
break; |
5977 |
break; |
5983 |
|
5978 |
|
5984 |
case 617 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::= Name instanceof..."); } //$NON-NLS-1$ |
5979 |
case 617 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::= Name instanceof..."); } //$NON-NLS-1$ |
5985 |
consumeInstanceOfExpressionWithName(OperatorIds.INSTANCEOF); |
5980 |
consumeInstanceOfExpressionWithName(); |
5986 |
break; |
5981 |
break; |
5987 |
|
5982 |
|
5988 |
case 618 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::=..."); } //$NON-NLS-1$ |
5983 |
case 618 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::=..."); } //$NON-NLS-1$ |
5989 |
consumeInstanceOfExpression(OperatorIds.INSTANCEOF); |
5984 |
consumeInstanceOfExpression(); |
5990 |
break; |
5985 |
break; |
5991 |
|
5986 |
|
5992 |
case 620 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ |
5987 |
case 620 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ |