@Override public XMLParse clone() { XMLParse clone = new XMLParse(); clone.document = this.document; clone.expression = (Expression)this.expression.clone(); clone.wellFormed = this.wellFormed; return clone; }
@Override public XMLSerialize clone() { XMLSerialize clone = new XMLSerialize(); clone.document = this.document; clone.expression = (Expression)this.expression.clone(); clone.typeString = this.typeString; clone.type = this.type; clone.declaration = this.declaration; clone.version = this.version; clone.encoding = this.encoding; return clone; }
@Override public XMLParse clone() { XMLParse clone = new XMLParse(); clone.document = this.document; clone.expression = (Expression)this.expression.clone(); clone.wellFormed = this.wellFormed; return clone; }
@Override public XMLSerialize clone() { XMLSerialize clone = new XMLSerialize(); clone.document = this.document; clone.expression = (Expression)this.expression.clone(); clone.typeString = this.typeString; clone.type = this.type; clone.declaration = this.declaration; clone.version = this.version; clone.encoding = this.encoding; return clone; }
@Override public OrderByItem clone() { OrderByItem clone = new OrderByItem((Expression)this.symbol.clone(), ascending); clone.expressionPosition = this.expressionPosition; clone.nullOrdering = this.nullOrdering; return clone; }
@Override public DerivedColumn clone() { DerivedColumn clone = new DerivedColumn(alias, (Expression)this.expression.clone()); clone.propagateName = propagateName; return clone; }
public SymbolMap clone() { SymbolMap clonedMap = new SymbolMap(); for (Map.Entry<ElementSymbol, Expression> entry : map.entrySet()) { clonedMap.addMapping(entry.getKey().clone(), (Expression)entry.getValue().clone()); } return clonedMap; }
@Override public XMLColumn clone() { XMLColumn clone = new XMLColumn(); super.copyTo(clone); clone.ordinal = this.ordinal; clone.path = this.path; if (this.defaultExpression != null) { clone.defaultExpression = (Expression)this.defaultExpression.clone(); } return clone; } }
@Override public ObjectColumn clone() { ObjectColumn clone = new ObjectColumn(); super.copyTo(clone); clone.path = this.path; if (this.defaultExpression != null) { clone.defaultExpression = (Expression)this.defaultExpression.clone(); } clone.compiledScript = this.compiledScript; return clone; } }
@Override public ObjectColumn clone() { ObjectColumn clone = new ObjectColumn(); super.copyTo(clone); clone.path = this.path; if (this.defaultExpression != null) { clone.defaultExpression = (Expression)this.defaultExpression.clone(); } clone.compiledScript = this.compiledScript; return clone; } }
/** * Deep clone statement to produce a new identical statement. * @return Deep clone */ public Object clone() { AssignmentStatement clone = new AssignmentStatement(this.variable.clone(), (Expression) this.value.clone()); return clone; }
/** * Return a copy of this object. */ public Object clone() { Expression symbolCopy = (Expression) this.symbol.clone(); AliasSymbol result = new AliasSymbol(getName(), getShortName(), symbolCopy); result.outputName = this.outputName; return result; }
/** * Return a deep copy of this object * @return Deep copy of this object */ public Object clone() { Expression clonedExpr = null; if(getExpression() != null) { clonedExpr = (Expression) getExpression().clone(); } ExpressionSymbol copy = new ExpressionSymbol(getName(), clonedExpr); return copy; }
@Override protected ArrayTable cloneDirect() { ArrayTable clone = new ArrayTable(); this.copy(clone); clone.setArrayValue((Expression)this.arrayValue.clone()); for (ProjectedColumn column : columns) { clone.getColumns().add(column.copyTo(new ProjectedColumn())); } return clone; }
@Override protected ArrayTable cloneDirect() { ArrayTable clone = new ArrayTable(); this.copy(clone); clone.setArrayValue((Expression)this.arrayValue.clone()); for (ProjectedColumn column : columns) { clone.getColumns().add(column.copyTo(new ProjectedColumn())); } return clone; }
private Expression rewriteCaseExpression(CaseExpression expr) throws TeiidComponentException, TeiidProcessingException{ List<CompareCriteria> whens = new ArrayList<CompareCriteria>(expr.getWhenCount()); for (Expression expression: (List<Expression>)expr.getWhen()) { whens.add(new CompareCriteria((Expression)expr.getExpression().clone(), CompareCriteria.EQ, expression)); } SearchedCaseExpression sce = new SearchedCaseExpression(whens, expr.getThen()); sce.setElseExpression(expr.getElseExpression()); sce.setType(expr.getType()); return rewriteCaseExpression(sce); }
/** * Deep clone statement to produce a new identical statement. * @return Deep clone */ public Object clone() { if (getValue() == null) { return new DeclareStatement(this.getVariable().clone(), this.varType); } return new DeclareStatement(this.getVariable().clone(), this.varType, (Expression)getValue().clone()); }
/** * Deep clone statement to produce a new identical statement. * @return Deep clone */ public Object clone() { if (getExpression() == null) { return new DeclareStatement(this.getVariable().clone(), this.varType); } return new DeclareStatement(this.getVariable().clone(), this.varType, (Expression)getExpression().clone()); }