/** * 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()); }
private void collectDeclareVariable(DeclareStatement obj, GroupSymbol variables, TempMetadataAdapter metadata, GroupContext externalGroups) throws QueryResolverException, TeiidComponentException { ElementSymbol variable = obj.getVariable(); String typeName = obj.getVariableType(); GroupSymbol gs = variable.getGroupSymbol();
private void collectDeclareVariable(DeclareStatement obj, GroupSymbol variables, TempMetadataAdapter metadata, GroupContext externalGroups) throws QueryResolverException, TeiidComponentException { ElementSymbol variable = obj.getVariable(); String typeName = obj.getVariableType(); GroupSymbol gs = variable.getGroupSymbol();
/** * 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()); }
private void collectDeclareVariable(DeclareStatement obj, GroupSymbol variables, TempMetadataAdapter metadata, GroupContext externalGroups) throws QueryResolverException, TeiidComponentException { ElementSymbol variable = obj.getVariable(); String typeName = obj.getVariableType(); GroupSymbol gs = variable.getGroupSymbol();
/** * 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()); }
public void visit(DeclareStatement obj) { preVisitVisitor(obj); visitNode(obj.getVariable()); visitNode(obj.getExpression()); postVisitVisitor(obj); } public void visit(Delete obj) {
public void visit(DeclareStatement obj) { preVisitVisitor(obj); visitNode(obj.getVariable()); visitNode(obj.getExpression()); postVisitVisitor(obj); } public void visit(Delete obj) {
public void visit(DeclareStatement obj) { preVisitVisitor(obj); visitNode(obj.getVariable()); visitNode(obj.getExpression()); postVisitVisitor(obj); } public void visit(Delete obj) {
public void testGetVariable() { DeclareStatement s1 = sample1(); assertEquals("Incorrect variable ", s1.getVariable(), new ElementSymbol("a")); //$NON-NLS-1$ //$NON-NLS-2$ }