Java Code Examples for com.sun.hotspot.igv.data.Properties#setProperty()
The following examples show how to use
com.sun.hotspot.igv.data.Properties#setProperty() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Printer.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private void export(XMLWriter writer, Group g) throws IOException { Properties attributes = new Properties(); attributes.setProperty("difference", Boolean.toString(true)); writer.startTag(Parser.GROUP_ELEMENT, attributes); writer.writeProperties(g.getProperties()); if (g.getMethod() != null) { export(writer, g.getMethod()); } InputGraph previous = null; for (InputGraph graph : g.getGraphs()) { export(writer, graph, previous, true); previous = graph; } writer.endTag(); }
Example 2
Source File: Printer.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private void export(XMLWriter writer, Group g) throws IOException { Properties attributes = new Properties(); attributes.setProperty("difference", Boolean.toString(true)); writer.startTag(Parser.GROUP_ELEMENT, attributes); writer.writeProperties(g.getProperties()); if (g.getMethod() != null) { export(writer, g.getMethod()); } InputGraph previous = null; for (InputGraph graph : g.getGraphs()) { export(writer, graph, previous, true); previous = graph; } writer.endTag(); }
Example 3
Source File: Printer.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private void export(XMLWriter writer, Group g) throws IOException { Properties attributes = new Properties(); attributes.setProperty("difference", Boolean.toString(true)); writer.startTag(Parser.GROUP_ELEMENT, attributes); writer.writeProperties(g.getProperties()); if (g.getMethod() != null) { export(writer, g.getMethod()); } InputGraph previous = null; for (InputGraph graph : g.getGraphs()) { export(writer, graph, previous, true); previous = graph; } writer.endTag(); }
Example 4
Source File: Printer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private void export(XMLWriter writer, Group g) throws IOException { Properties attributes = new Properties(); attributes.setProperty("difference", Boolean.toString(true)); writer.startTag(Parser.GROUP_ELEMENT, attributes); writer.writeProperties(g.getProperties()); if (g.getMethod() != null) { export(writer, g.getMethod()); } InputGraph previous = null; for (InputGraph graph : g.getGraphs()) { export(writer, graph, previous, true); previous = graph; } writer.endTag(); }
Example 5
Source File: XMLParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void processAttributesAsProperties(Properties p) { int length = attr.getLength(); for (int i = 0; i < length; i++) { String val = attr.getValue(i).intern(); String localName = attr.getLocalName(i).intern(); p.setProperty(val, localName); } }
Example 6
Source File: PropertiesSheet.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public static void initializeSheet(final Properties properties, Sheet s) { Sheet.Set set1 = Sheet.createPropertiesSet(); set1.setDisplayName("Properties"); for (final Property p : properties) { Node.Property<String> prop = new Node.Property<String>(String.class) { @Override public boolean canRead() { return true; } @Override public String getValue() throws IllegalAccessException, InvocationTargetException { return p.getValue(); } @Override public boolean canWrite() { return false; } @Override public void setValue(String arg0) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { properties.setProperty(p.getName(), arg0); } }; prop.setName(p.getName()); set1.put(prop); } s.put(set1); }
Example 7
Source File: Printer.java From hottub with GNU General Public License v2.0 | 5 votes |
private Properties createProperties(InputEdge edge) { Properties p = new Properties(); p.setProperty(Parser.TO_INDEX_PROPERTY, Integer.toString(edge.getToIndex())); p.setProperty(Parser.TO_PROPERTY, Integer.toString(edge.getTo())); p.setProperty(Parser.FROM_PROPERTY, Integer.toString(edge.getFrom())); return p; }
Example 8
Source File: BinaryParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void parseBlocks(InputGraph graph) throws IOException { int blockCount = readInt(); List<Edge> edges = new LinkedList<>(); for (int i = 0; i < blockCount; i++) { int id = readInt(); String name = id >= 0 ? Integer.toString(id) : NO_BLOCK; InputBlock block = graph.addBlock(name); int nodeCount = readInt(); for (int j = 0; j < nodeCount; j++) { int nodeId = readInt(); if (nodeId < 0) { continue; } final Properties properties = graph.getNode(nodeId).getProperties(); final String oldBlock = properties.get("block"); if(oldBlock != null) { properties.setProperty("block", oldBlock + ", " + name); } else { block.addNode(nodeId); properties.setProperty("block", name); } } int edgeCount = readInt(); for (int j = 0; j < edgeCount; j++) { int to = readInt(); edges.add(new Edge(id, to)); } } for (Edge e : edges) { String fromName = e.from >= 0 ? Integer.toString(e.from) : NO_BLOCK; String toName = e.to >= 0 ? Integer.toString(e.to) : NO_BLOCK; graph.addBlockEdge(graph.getBlock(fromName), graph.getBlock(toName)); } }
Example 9
Source File: XMLParser.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void processAttributesAsProperties(Properties p) { int length = attr.getLength(); for (int i = 0; i < length; i++) { String val = attr.getValue(i).intern(); String localName = attr.getLocalName(i).intern(); p.setProperty(val, localName); } }
Example 10
Source File: PropertiesSheet.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public static void initializeSheet(final Properties properties, Sheet s) { Sheet.Set set1 = Sheet.createPropertiesSet(); set1.setDisplayName("Properties"); for (final Property p : properties) { Node.Property<String> prop = new Node.Property<String>(String.class) { @Override public boolean canRead() { return true; } @Override public String getValue() throws IllegalAccessException, InvocationTargetException { return p.getValue(); } @Override public boolean canWrite() { return false; } @Override public void setValue(String arg0) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { properties.setProperty(p.getName(), arg0); } }; prop.setName(p.getName()); set1.put(prop); } s.put(set1); }
Example 11
Source File: PropertiesSheet.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public static void initializeSheet(final Properties properties, Sheet s) { Sheet.Set set1 = Sheet.createPropertiesSet(); set1.setDisplayName("Properties"); for (final Property p : properties) { Node.Property<String> prop = new Node.Property<String>(String.class) { @Override public boolean canRead() { return true; } @Override public String getValue() throws IllegalAccessException, InvocationTargetException { return p.getValue(); } @Override public boolean canWrite() { return false; } @Override public void setValue(String arg0) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { properties.setProperty(p.getName(), arg0); } }; prop.setName(p.getName()); set1.put(prop); } s.put(set1); }
Example 12
Source File: Printer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private Properties createProperties(InputEdge edge) { Properties p = new Properties(); p.setProperty(Parser.TO_INDEX_PROPERTY, Integer.toString(edge.getToIndex())); p.setProperty(Parser.TO_PROPERTY, Integer.toString(edge.getTo())); p.setProperty(Parser.FROM_PROPERTY, Integer.toString(edge.getFrom())); return p; }
Example 13
Source File: PropertiesSheet.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static void initializeSheet(final Properties properties, Sheet s) { Sheet.Set set1 = Sheet.createPropertiesSet(); set1.setDisplayName("Properties"); for (final Property p : properties) { Node.Property<String> prop = new Node.Property<String>(String.class) { @Override public boolean canRead() { return true; } @Override public String getValue() throws IllegalAccessException, InvocationTargetException { return p.getValue(); } @Override public boolean canWrite() { return false; } @Override public void setValue(String arg0) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { properties.setProperty(p.getName(), arg0); } }; prop.setName(p.getName()); set1.put(prop); } s.put(set1); }
Example 14
Source File: GraphNode.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override protected Sheet createSheet() { Sheet s = super.createSheet(); Properties p = new Properties(); p.add(graph.getProperties()); p.setProperty("nodeCount", Integer.toString(graph.getNodes().size())); p.setProperty("edgeCount", Integer.toString(graph.getEdges().size())); PropertiesSheet.initializeSheet(p, s); return s; }
Example 15
Source File: Printer.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private Properties createProperties(InputEdge edge) { Properties p = new Properties(); p.setProperty(Parser.TO_INDEX_PROPERTY, Integer.toString(edge.getToIndex())); p.setProperty(Parser.TO_PROPERTY, Integer.toString(edge.getTo())); p.setProperty(Parser.FROM_PROPERTY, Integer.toString(edge.getFrom())); return p; }
Example 16
Source File: XMLParser.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void processAttributesAsProperties(Properties p) { int length = attr.getLength(); for (int i = 0; i < length; i++) { String val = attr.getValue(i).intern(); String localName = attr.getLocalName(i).intern(); p.setProperty(val, localName); } }
Example 17
Source File: XMLParser.java From hottub with GNU General Public License v2.0 | 5 votes |
public void processAttributesAsProperties(Properties p) { int length = attr.getLength(); for (int i = 0; i < length; i++) { String val = attr.getValue(i).intern(); String localName = attr.getLocalName(i).intern(); p.setProperty(val, localName); } }
Example 18
Source File: PropertiesSheet.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public static void initializeSheet(final Properties properties, Sheet s) { Sheet.Set set1 = Sheet.createPropertiesSet(); set1.setDisplayName("Properties"); for (final Property p : properties) { Node.Property<String> prop = new Node.Property<String>(String.class) { @Override public boolean canRead() { return true; } @Override public String getValue() throws IllegalAccessException, InvocationTargetException { return p.getValue(); } @Override public boolean canWrite() { return false; } @Override public void setValue(String arg0) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { properties.setProperty(p.getName(), arg0); } }; prop.setName(p.getName()); set1.put(prop); } s.put(set1); }
Example 19
Source File: Slot.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public Properties getProperties() { Properties p = new Properties(); if (source.getSourceNodes().size() > 0) { for (InputNode n : source.getSourceNodes()) { p.add(n.getProperties()); } } else { p.setProperty("name", "Slot"); p.setProperty("figure", figure.getProperties().get("name")); p.setProperty("connectionCount", Integer.toString(connections.size())); } return p; }
Example 20
Source File: XMLParser.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void processAttributesAsProperties(Properties p) { int length = attr.getLength(); for (int i = 0; i < length; i++) { String val = attr.getValue(i).intern(); String localName = attr.getLocalName(i).intern(); p.setProperty(val, localName); } }