public NodeData push(Declaration d) { Map<String,CSSProperty> properties = new HashMap<String,CSSProperty>(COMMON_DECLARATION_SIZE); Map<String,Term<?>> terms = new HashMap<String, Term<?>>(COMMON_DECLARATION_SIZE); boolean result = transformer.parseDeclaration(d, properties, terms); // in case of false do not insert anything if(!result) return this; //set the sources and store the properties for(Entry<String,CSSProperty> entry: properties.entrySet()) { propertiesOwn.put(entry.getKey(), entry.getValue()); sourcesOwn.put(entry.getKey(), d); } // remove operators from terms and store the values for(Entry<String,Term<?>> entry: terms.entrySet()) { Term<?> t = entry.getValue(); if (t.getOperator() != null) t = t.shallowClone().setOperator(null); valuesOwn.put(entry.getKey(), t); } return this; }
public NodeData push(Declaration d) { Map<String,CSSProperty> properties = new HashMap<String,CSSProperty>(COMMON_DECLARATION_SIZE); Map<String,Term<?>> terms = new HashMap<String, Term<?>>(COMMON_DECLARATION_SIZE); boolean result = transformer.parseDeclaration(d, properties, terms); // in case of false do not insert anything if(!result) return this; //set the sources and store the properties for(Entry<String,CSSProperty> entry: properties.entrySet()) { propertiesOwn.put(entry.getKey(), entry.getValue()); sourcesOwn.put(entry.getKey(), d); } // remove operators from terms and store the values for(Entry<String,Term<?>> entry: terms.entrySet()) { Term<?> t = entry.getValue(); if (t.getOperator() != null) t = t.shallowClone().setOperator(null); valuesOwn.put(entry.getKey(), t); } return this; }
public NodeData push(Declaration d) { Map<String,CSSProperty> properties = new HashMap<String,CSSProperty>(COMMON_DECLARATION_SIZE); Map<String,Term<?>> terms = new HashMap<String, Term<?>>(COMMON_DECLARATION_SIZE); boolean result = transformer.parseDeclaration(d, properties, terms); // in case of false do not insert anything if(!result) return this; for(Entry<String, CSSProperty> entry : properties.entrySet()) { final String key = entry.getKey(); Quadruple q = map.get(key); if(q==null) q = new Quadruple(); q.curProp = entry.getValue(); q.curValue = terms.get(key); q.curSource = d; // remove operator if((q.curValue!=null) && (q.curValue.getOperator() != null)) { q.curValue = q.curValue.shallowClone().setOperator(null); } map.put(key, q); } return this; }
public NodeData push(Declaration d) { Map<String,CSSProperty> properties = new HashMap<String,CSSProperty>(COMMON_DECLARATION_SIZE); Map<String,Term<?>> terms = new HashMap<String, Term<?>>(COMMON_DECLARATION_SIZE); boolean result = transformer.parseDeclaration(d, properties, terms); // in case of false do not insert anything if(!result) return this; for(String key: properties.keySet()) { Quadruple q = map.get(key); if(q==null) q = new Quadruple(); q.curProp = properties.get(key); q.curValue = terms.get(key); q.curSource = d; // remove operator if((q.curValue!=null) && (q.curValue.getOperator() != null)) { q.curValue = q.curValue.shallowClone().setOperator(null); } map.put(key, q); } return this; }
public NodeData push(Declaration d) { Map<String,CSSProperty> properties = new HashMap<String,CSSProperty>(COMMON_DECLARATION_SIZE); Map<String,Term<?>> terms = new HashMap<String, Term<?>>(COMMON_DECLARATION_SIZE); boolean result = transformer.parseDeclaration(d, properties, terms); // in case of false do not insert anything if(!result) return this; for(Entry<String, CSSProperty> entry : properties.entrySet()) { final String key = entry.getKey(); Quadruple q = map.get(key); if(q==null) q = new Quadruple(); q.curProp = entry.getValue(); q.curValue = terms.get(key); q.curSource = d; // remove operator if((q.curValue!=null) && (q.curValue.getOperator() != null)) { q.curValue = q.curValue.shallowClone().setOperator(null); } map.put(key, q); } return this; }
if (curOp.getValue() == '-') { Float newVal = -((TermFloatValue) curVal).getValue(); curVal = (TermFloatValue) curVal.shallowClone(); ((TermFloatValue) curVal).setValue(newVal); } else if (curOp.getValue() != '+') { if (curOp.getValue() == '-') { Float newVal = -((TermFloatValue) curVal).getValue(); curVal = (TermFloatValue) curVal.shallowClone(); ((TermFloatValue) curVal).setValue(newVal); } else if (curOp.getValue() != '+') {
if (curOp.getValue() == '-') { Float newVal = -((TermFloatValue) curVal).getValue(); curVal = (TermFloatValue) curVal.shallowClone(); ((TermFloatValue) curVal).setValue(newVal); } else if (curOp.getValue() != '+') { if (curOp.getValue() == '-') { Float newVal = -((TermFloatValue) curVal).getValue(); curVal = (TermFloatValue) curVal.shallowClone(); ((TermFloatValue) curVal).setValue(newVal); } else if (curOp.getValue() != '+') {