From 5369b047dcdc15559ba5840364ced177acb839af Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 6 Mar 1999 21:39:02 +0000 Subject: [PATCH] CreateAssignExpression before CreateExpression (they match same exprs) get/setExpressions final git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@315 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/InstructionContainer.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/jode/jode/flow/InstructionContainer.java b/jode/jode/flow/InstructionContainer.java index 3ca4626..74af55f 100644 --- a/jode/jode/flow/InstructionContainer.java +++ b/jode/jode/flow/InstructionContainer.java @@ -16,6 +16,7 @@ * $Id$ */ package jode.flow; +import jode.decompiler.LocalInfo; import jode.expr.Expression; import jode.expr.LocalVarOperator; @@ -23,6 +24,9 @@ import jode.expr.LocalVarOperator; * This is a method for block containing a single instruction. */ public abstract class InstructionContainer extends StructuredBlock { + /** + * The instruction. + */ Expression instr; public InstructionContainer(Expression instr) { @@ -59,9 +63,9 @@ public abstract class InstructionContainer extends StructuredBlock { public boolean doTransformations() { StructuredBlock last = flowBlock.lastModified; return CreateNewConstructor.transform(this, last) + || CreateAssignExpression.transform(this, last) || CreateExpression.transform(this, last) || CreatePrePostIncExpression.transform(this, last) - || CreateAssignExpression.transform(this, last) || CreateIfThenElseOperator.create(this, last) || CreateConstantArray.transform(this, last) || CreateCheckNull.transformJavac(this, last); @@ -71,7 +75,7 @@ public abstract class InstructionContainer extends StructuredBlock { * Get the contained instruction. * @return the contained instruction. */ - public Expression getInstruction() { + public final Expression getInstruction() { return instr; } @@ -79,7 +83,7 @@ public abstract class InstructionContainer extends StructuredBlock { * Set the contained instruction. * @param instr the new instruction. */ - public void setInstruction(Expression instr) { + public final void setInstruction(Expression instr) { this.instr = instr; } }