home *** CD-ROM | disk | FTP | other *** search
- public class JScriptCodeGenParam {
- private boolean bExprInForIn;
- private boolean bCanOptimizeIncDec;
- private JScriptCodeBlock aCodeBlock;
- private boolean bGenCode;
-
- public final void SetFlag_ExpressionInForInStatement(boolean var1) {
- this.bExprInForIn = var1;
- }
-
- public final boolean IsExpressionInForInStatement() {
- return this.bExprInForIn;
- }
-
- public final void SetFlag_OptimizeIncDec(boolean var1) {
- this.bCanOptimizeIncDec = var1;
- }
-
- public final boolean CanOptimizeIncDec() {
- return this.bCanOptimizeIncDec;
- }
-
- public final JScriptCodeBlock GetCodeBlock() {
- return this.aCodeBlock;
- }
-
- public final void SetCodeBlock(JScriptCodeBlock var1) {
- this.aCodeBlock = var1;
- }
-
- public int AddCode(JScriptPCode var1) throws JSbxException {
- return this.bGenCode ? this.GetCodeBlock().AddCode(var1) : 0;
- }
-
- public void SetGenCodeFlag(boolean var1) {
- this.bGenCode = var1;
- }
-
- public JScriptCodeGenParam() {
- this.Init();
- }
-
- public JScriptCodeGenParam(JScriptCodeBlock var1, boolean var2) {
- this.Init();
- this.aCodeBlock = var1;
- this.bGenCode = var2;
- }
-
- private final void Init() {
- this.aCodeBlock = null;
- this.bGenCode = false;
- this.bExprInForIn = false;
- this.bCanOptimizeIncDec = false;
- }
- }
-