/** * Copy an expression. This makes a deep copy. * * @return the copy of the original expression * @param rebindings */ /*@NotNull*/ public Expression copy(RebindingMap rebindings) { CastExpression c2 = new CastExpression(getBaseExpression().copy(rebindings), getTargetType(), allowsEmpty()); ExpressionTool.copyLocationInfo(this, c2); c2.converter = converter; c2.setRetainedStaticContext(getRetainedStaticContext()); c2.setOperandIsStringLiteral(isOperandIsStringLiteral()); return c2; }
/** * Copy an expression. This makes a deep copy. * * @return the copy of the original expression * @param rebindings */ /*@NotNull*/ public Expression copy(RebindingMap rebindings) { CastExpression c2 = new CastExpression(getBaseExpression().copy(rebindings), getTargetType(), allowsEmpty()); ExpressionTool.copyLocationInfo(this, c2); c2.converter = converter; c2.setRetainedStaticContext(getRetainedStaticContext()); c2.setOperandIsStringLiteral(isOperandIsStringLiteral()); return c2; }
CastExpression cast = new CastExpression(arguments[0], (AtomicType) type, true); if (arguments[0] instanceof StringLiteral) { cast.setOperandIsStringLiteral(true);
CastExpression cast = new CastExpression(arguments[0], (AtomicType) type, true); if (arguments[0] instanceof StringLiteral) { cast.setOperandIsStringLiteral(true);
CastExpression cast = new CastExpression(lhs, (AtomicType) type, allowEmpty); if (lhs instanceof StringLiteral) { cast.setOperandIsStringLiteral(true);
CastExpression cast = new CastExpression(lhs, (AtomicType) type, allowEmpty); if (lhs instanceof StringLiteral) { cast.setOperandIsStringLiteral(true);