/* SCCS - @(#)SpecialExprNode.java 1.2 - 02/28/99 - 12:39:23 */ /* * Copyright (c) 1997 USC Brain Project. email nsl@java.usc.edu. */ // // SpecialExprNode //////////////////////////////////////////////////////////// /** * SpecialExprNode - Special expression statements such * as super, this, null */ package npp.src.util; import pp.src.jbf.*; public class SpecialExprNode extends ExprNode { public SpecialExprNode(YYtoken t, int specialtoken) { super(t); special_token = specialtoken; if (specialtoken == NULL) type = new TypeNode(TypeNode.VOID, t); else if (specialtoken == THIS) type = new TypeNode(TypeNode.CLASS, t); else if (specialtoken == SUPER) type = new TypeNode(TypeNode.CLASS, t); } public int genCode(NslPreProcessor npp) { code = text; return NO_OP; } int special_token; public final static int NULL = 0; public final static int THIS = 1; public final static int SUPER = 2; public final static int NO_OP = 0; }