home *** CD-ROM | disk | FTP | other *** search
- class JScriptParserStructItem extends JSbxBase {
- private short nTokID;
- private JSbxStack nBreakPCStack;
- private JSbxStack nContinuePCStack;
-
- public short GetTokID() {
- return this.nTokID;
- }
-
- public JScriptParserStructItem(short var1) {
- this.nTokID = var1;
- }
-
- private JSbxStack GetBreakStack() {
- if (this.nBreakPCStack == null) {
- this.nBreakPCStack = new JSbxStack(5);
- }
-
- return this.nBreakPCStack;
- }
-
- private JSbxStack GetContinueStack() {
- if (this.nContinuePCStack == null) {
- this.nContinuePCStack = new JSbxStack(5);
- }
-
- return this.nContinuePCStack;
- }
-
- public void AddBreak(int var1) throws JSbxException {
- this.GetBreakStack().Push(new Integer(var1));
- }
-
- public void GenBreakJumps(JScriptCodeBlock var1, int var2) throws JSbxException {
- if (this.nBreakPCStack != null) {
- Integer var3;
- while((var3 = (Integer)this.nBreakPCStack.Pop()) != null) {
- var1.SetPCode(var3, new JSP_Jmp(var2));
- }
-
- }
- }
-
- public void AddContinue(int var1) throws JSbxException {
- this.GetContinueStack().Push(new Integer(var1));
- }
-
- public void GenContinueJumps(JScriptCodeBlock var1, int var2) throws JSbxException {
- if (this.nContinuePCStack != null) {
- Integer var3;
- while((var3 = (Integer)this.nContinuePCStack.Pop()) != null) {
- var1.SetPCode(var3, new JSP_Jmp(var2));
- }
-
- }
- }
- }
-