gecko-dev/js/js2/java/UnaryNode.java
rogerl%netscape.com c6788416d7 #Not a part of SeaMonkey
New.
1999-04-26 22:50:50 +00:00

28 lines
651 B
Java

class UnaryNode extends ExpressionNode {
UnaryNode(String aOp, ExpressionNode aChild)
{
child = aChild;
op = aOp;
}
String print(String indent)
{
StringBuffer result = new StringBuffer(indent);
result.append("UnaryNode ");
result.append(op);
result.append("\n");
indent += " ";
if (child == null) {
result.append(indent);
result.append("null\n");
}
else
result.append(child.print(indent));
return result.toString();
}
protected ExpressionNode child;
protected String op;
}