@Override public Expression apply(final AstNode e) { return new CastExpression(castToType, right); } }
@Override public Expression apply(final AstNode e) { return new CastExpression(castToType, right); } }
public CastExpression cast(final AstType type) { return new CastExpression(type, this); }
@Override public Expression apply(final AstNode e) { return new CastExpression(castToType, right); } }
@Override public AstNode apply(final AstNode input) { return new CastExpression(astBuilder.convertType(BuiltinTypes.Object), right); } }
@Override public AstNode apply(final AstNode input) { return new CastExpression(astBuilder.convertType(BuiltinTypes.Object), right); } }
@Override public AstNode apply(final AstNode input) { return new CastExpression(astBuilder.convertType(finalDeclaringType), target); } }
@Override public AstNode apply(final AstNode input) { return new CastExpression(astBuilder.convertType(BuiltinTypes.Object), right); } }
@Override public AstNode apply(final AstNode input) { return new CastExpression(astBuilder.convertType(targetResult.getType()), (Expression) input); } }
@Override public AstNode apply(final AstNode input) { return new CastExpression(astBuilder.convertType(targetResult.getType()), (Expression) input); } }
@Override public AstNode apply(final AstNode input) { return new CastExpression(astBuilder.convertType(targetResult.getType()), (Expression) input); } }
arguments.set( i, new CastExpression(_astBuilder.convertType(pType, options), argument) );
arguments.set( i, new CastExpression(_astBuilder.convertType(pType, options), argument) );
arguments.set( i, new CastExpression(_astBuilder.convertType(pType, options), argument) );
private void performUnboxingRemoval(final InvocationExpression e, final MemberReferenceExpression target) { final Expression boxedValue = target.getTarget(); final MethodReference unboxMethod = (MethodReference) e.getUserData(Keys.MEMBER_REFERENCE); final AstBuilder astBuilder = context.getUserData(Keys.AST_BUILDER); boxedValue.remove(); e.replaceWith( new CastExpression( astBuilder.convertType(unboxMethod.getReturnType()), boxedValue ) ); }
private void performUnboxingRemoval(final InvocationExpression e, final MemberReferenceExpression target) { final Expression boxedValue = target.getTarget(); final MethodReference unboxMethod = (MethodReference) e.getUserData(Keys.MEMBER_REFERENCE); final AstBuilder astBuilder = context.getUserData(Keys.AST_BUILDER); boxedValue.remove(); e.replaceWith( new CastExpression( astBuilder.convertType(unboxMethod.getReturnType()), boxedValue ) ); }
new CastExpression( astBuilder.convertType(unboxMethod.getReturnType()), boxedValue
node.replaceWith(new CastExpression(astBuilder.convertType(castType), underlyingValue));
node.replaceWith(new CastExpression(astBuilder.convertType(castType), underlyingValue));
"clone" ).invoke(), new CastExpression( astBuilder.convertType(definition.makeArrayType()), new MemberReferenceExpression(