Examples of ElementValue


Examples of org.apache.harmony.unpack200.bytecode.AnnotationsAttribute.ElementValue

                                name_RU_Iterator));
                    }
                } else { // type.equals("AD")
                    for (int i = 0; i < T.length; i++) {
                        attributes.add(new AnnotationDefaultAttribute(
                                new ElementValue(T[i], getNextValue(T[i]))));
                    }
                }
            }
        }
        return attributes;
View Full Code Here

Examples of org.apache.harmony.unpack200.bytecode.AnnotationsAttribute.ElementValue

        CPUTF8[] elementNames = new CPUTF8[pairCount];
        ElementValue[] elementValues = new ElementValue[pairCount];
        for (int j = 0; j < elementNames.length; j++) {
            elementNames[j] = (CPUTF8) namesIterator.next();
            int t = T[T_index++];
            elementValues[j] = new ElementValue(t, getNextValue(t));
        }
        return new Annotation(pairCount, type, elementNames, elementValues);
    }
View Full Code Here

Examples of org.apache.harmony.unpack200.bytecode.AnnotationsAttribute.ElementValue

        case '[':
            int arraySize = casearray_N[casearray_N_Index++];
            ElementValue[] nestedArray = new ElementValue[arraySize];
            for (int i = 0; i < arraySize; i++) {
                int nextT = T[T_index++];
                nestedArray[i] = new ElementValue(nextT, getNextValue(nextT));
            }
            return nestedArray;
        case '@':
            CPUTF8 type = (CPUTF8) nesttype_RS[nesttype_RS_Index++];
            int numPairs = nestpair_N[nestpair_N_Index++];
View Full Code Here

Examples of org.apache.harmony.unpack200.bytecode.AnnotationsAttribute.ElementValue

                                name_RU_Iterator));
                    }
                } else { // type.equals("AD")
                    for (int i = 0; i < T.length; i++) {
                        attributes.add(new AnnotationDefaultAttribute(
                                new ElementValue(T[i], getNextValue(T[i]))));
                    }
                }
            }
        }
        return attributes;
View Full Code Here

Examples of org.apache.harmony.unpack200.bytecode.AnnotationsAttribute.ElementValue

        CPUTF8[] elementNames = new CPUTF8[pairCount];
        ElementValue[] elementValues = new ElementValue[pairCount];
        for (int j = 0; j < elementNames.length; j++) {
            elementNames[j] = (CPUTF8) namesIterator.next();
            int t = ((Integer) T_iterator.next()).intValue();
            elementValues[j] = new ElementValue(t, getNextValue(t));
        }
        return new Annotation(pairCount, type, elementNames, elementValues);
    }
View Full Code Here

Examples of org.apache.harmony.unpack200.bytecode.AnnotationsAttribute.ElementValue

        case '[':
            int arraySize = ((Integer) casearray_Iterator.next()).intValue();
            ElementValue[] nestedArray = new ElementValue[arraySize];
            for (int i = 0; i < arraySize; i++) {
                int nextT = ((Integer) T_iterator.next()).intValue();
                nestedArray[i] = new ElementValue(nextT, getNextValue(nextT));
            }
            return nestedArray;
        case '@':
            CPUTF8 type = (CPUTF8) nesttype_RS_Iterator.next();
            int numPairs = ((Integer) nestpair_N_Iterator.next()).intValue();
View Full Code Here

Examples of org.apache.slide.projector.value.ElementValue

    public XMLValue getPropertyAsXMLValue(URI uri, String namespace, String name, Credentials credentials) throws IOException {
    Property property = getProperty(uri, namespace, name, credentials);
    if ( property == null ) return null;
    DOMBuilder builder = new DOMBuilder();
        Element element = builder.build(property.getElement());
    return new ElementValue(element);
    }
View Full Code Here

Examples of org.apache.slide.projector.value.ElementValue

    }

    public Value load(Element element) {
      Iterator iterator = element.getChildren().iterator();
      if ( iterator.hasNext() ) {
        return new ElementValue((Element)iterator.next());
      }
    return new ElementValue(element);
  }
View Full Code Here

Examples of org.apache.slide.projector.value.ElementValue

      }
    }
   
    public static Value createValueFromNode(Object node) throws ProcessException {
      if ( node instanceof Element ) {
        return new ElementValue((Element)node);
      } else if ( node instanceof Attribute ) {
        return new StringValue(((Attribute)node).getValue());
      } else if ( node instanceof Text ) {
        return new StringValue(((Text)node).getText());
      } else if ( node instanceof Comment ) {
View Full Code Here

Examples of org.apache.slide.projector.value.ElementValue

      }
    return new ElementValue(element);
  }
   
    public void save(Value value, XMLStringWriter writer) {
      ElementValue elementValue = (ElementValue)value;
      try {
        xmlOutputter.output(elementValue.getRootElement(), writer);
      } catch (IOException e) {
        logger.log(Level.SEVERE, "Could not persist ElementValue", e);
      }
      writer.writeEndTag(XMLWriter.createEndTag(getElementName()));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.