#Not a part of SeaMonkey

New.


git-svn-id: svn://10.0.0.236/trunk@29270 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
1999-04-26 22:50:50 +00:00
parent 28d88fbe8c
commit 612f4ccc6c
5 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
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;
}