本文整理汇总了Java中com.sun.hotspot.igv.data.InputEdge类的典型用法代码示例。如果您正苦于以下问题:Java InputEdge类的具体用法?Java InputEdge怎么用?Java InputEdge使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InputEdge类属于com.sun.hotspot.igv.data包,在下文中一共展示了InputEdge类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: start
import com.sun.hotspot.igv.data.InputEdge; //导入依赖的package包/类
@Override
protected InputEdge start() throws SAXException {
int toIndex = 0;
int from = -1;
int to = -1;
try {
String toIndexString = readAttribute(TO_INDEX_PROPERTY);
if (toIndexString != null) {
toIndex = Integer.parseInt(toIndexString);
}
from = lookupID(readRequiredAttribute(FROM_PROPERTY));
to = lookupID(readRequiredAttribute(TO_PROPERTY));
} catch (NumberFormatException e) {
throw new SAXException(e);
}
InputEdge conn = new InputEdge((char) toIndex, from, to);
return start(conn);
}
示例2: createProperties
import com.sun.hotspot.igv.data.InputEdge; //导入依赖的package包/类
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;
}
示例3: compare
import com.sun.hotspot.igv.data.InputEdge; //导入依赖的package包/类
@Override
public int compare(InputEdge o1, InputEdge o2) {
return o1.getToIndex() - o2.getToIndex();
}
示例4: markAsNew
import com.sun.hotspot.igv.data.InputEdge; //导入依赖的package包/类
private static void markAsNew(InputEdge e) {
e.setState(InputEdge.State.NEW);
}
示例5: markAsSame
import com.sun.hotspot.igv.data.InputEdge; //导入依赖的package包/类
private static void markAsSame(InputEdge e) {
e.setState(InputEdge.State.SAME);
}
示例6: compare
import com.sun.hotspot.igv.data.InputEdge; //导入依赖的package包/类
public int compare(InputEdge o1, InputEdge o2) {
return o1.getToIndex() - o2.getToIndex();
}