@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; }
/** * Get the type of the symbol * @return Type of the symbol */ public Class<?> getType() { return this.symbol.getType(); }
/** * Get the type of the symbol * @return Type of the symbol, may be null before resolution */ public Class getType() { return this.expression.getType(); }
@Override public XMLParse clone() { XMLParse clone = new XMLParse(); clone.document = this.document; clone.expression = (Expression)this.expression.clone(); clone.wellFormed = this.wellFormed; return clone; }
/** * Get the type of the symbol * @return Type of the symbol */ public Class<?> getType() { return this.symbol.getType(); }
@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; }
public void validateXMLContentTypes(Expression expression, LanguageObject parent) { if (expression.getType() == DataTypeManager.DefaultDataClasses.OBJECT || expression.getType() == null || expression.getType().isArray()) { handleValidationError(QueryPlugin.Util.getString("ValidationVisitor.xml_content_type", expression), parent); //$NON-NLS-1$ } }
@Override public XMLParse clone() { XMLParse clone = new XMLParse(); clone.document = this.document; clone.expression = (Expression)this.expression.clone(); clone.wellFormed = this.wellFormed; return clone; }
public void validateXMLContentTypes(Expression expression, LanguageObject parent) { if (expression.getType() == DataTypeManager.DefaultDataClasses.OBJECT || expression.getType() == null || expression.getType().isArray()) { handleValidationError(QueryPlugin.Util.getString("ValidationVisitor.xml_content_type", expression), parent); //$NON-NLS-1$ } }
@Override public OrderByItem clone() { OrderByItem clone = new OrderByItem((Expression)this.symbol.clone(), ascending); clone.expressionPosition = this.expressionPosition; clone.nullOrdering = this.nullOrdering; return clone; }
/** * @see org.teiid.query.sql.symbol.Expression#getType() */ public Class<?> getType() { if (this.type == null){ Expression symbol = this.command.getProjectedSymbols().iterator().next(); this.type = symbol.getType(); } //may still be null if this.command wasn't resolved return this.type; }
@Override public DerivedColumn clone() { DerivedColumn clone = new DerivedColumn(alias, (Expression)this.expression.clone()); clone.propagateName = propagateName; return clone; }
private static Class<?>[] getTypeClasses(final List<? extends Expression> elements) { Class<?>[] types = new Class[elements.size()]; for (ListIterator<? extends Expression> i = elements.listIterator(); i.hasNext();) { Expression expr = i.next(); Class<?> type = expr.getType(); Assertion.isNotNull(type); types[i.previousIndex()] = type; } return types; }
@Override public OrderByItem clone() { OrderByItem clone = new OrderByItem((Expression)this.symbol.clone(), ascending); clone.expressionPosition = this.expressionPosition; clone.nullOrdering = this.nullOrdering; return clone; }
/** * @see org.teiid.query.sql.symbol.Expression#getType() */ public Class<?> getType() { if (this.type == null){ Expression symbol = this.command.getProjectedSymbols().iterator().next(); this.type = symbol.getType(); } //may still be null if this.command wasn't resolved return this.type; }
@Override public OrderByItem clone() { OrderByItem clone = new OrderByItem((Expression)this.symbol.clone(), ascending); clone.expressionPosition = this.expressionPosition; clone.nullOrdering = this.nullOrdering; return clone; }
private static Class<?>[] getTypeClasses(final List<? extends Expression> elements) { Class<?>[] types = new Class[elements.size()]; for (ListIterator<? extends Expression> i = elements.listIterator(); i.hasNext();) { Expression expr = i.next(); Class<?> type = expr.getType(); Assertion.isNotNull(type); types[i.previousIndex()] = type; } return types; }
@Override public DerivedColumn clone() { DerivedColumn clone = new DerivedColumn(alias, (Expression)this.expression.clone()); clone.propagateName = propagateName; return clone; }
/** * @see org.teiid.query.sql.symbol.Expression#getType() */ public Class<?> getType() { if (this.type == null){ Expression symbol = this.command.getProjectedSymbols().iterator().next(); this.type = symbol.getType(); } //may still be null if this.command wasn't resolved return this.type; }
@Override public XMLParse clone() { XMLParse clone = new XMLParse(); clone.document = this.document; clone.expression = (Expression)this.expression.clone(); clone.wellFormed = this.wellFormed; return clone; }