From e2061d9d3ccf38ca0c61226322e31a97e27a0a00 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 28 Apr 1999 11:01:34 +0000 Subject: [PATCH] getLValuePriority git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@682 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/expr/LocalStoreOperator.java | 4 ++++ jode/jode/expr/PutFieldOperator.java | 4 ++++ jode/jode/expr/StoreInstruction.java | 2 ++ 3 files changed, 10 insertions(+) diff --git a/jode/jode/expr/LocalStoreOperator.java b/jode/jode/expr/LocalStoreOperator.java index 7f3f514..09e307a 100644 --- a/jode/jode/expr/LocalStoreOperator.java +++ b/jode/jode/expr/LocalStoreOperator.java @@ -64,6 +64,10 @@ public class LocalStoreOperator extends StoreInstruction == local.getSlot(); } + public int getLValuePriority() { + return 1000; + } + public int getLValueOperandCount() { return 0; } diff --git a/jode/jode/expr/PutFieldOperator.java b/jode/jode/expr/PutFieldOperator.java index d0be5f5..3e1d1e0 100644 --- a/jode/jode/expr/PutFieldOperator.java +++ b/jode/jode/expr/PutFieldOperator.java @@ -75,6 +75,10 @@ public class PutFieldOperator extends StoreInstruction { && ((GetFieldOperator)loadop).ref.equals(ref); } + public int getLValuePriority() { + return 950; + } + public int getLValueOperandCount() { return staticFlag?0:1; } diff --git a/jode/jode/expr/StoreInstruction.java b/jode/jode/expr/StoreInstruction.java index 0f02786..bfb54d0 100644 --- a/jode/jode/expr/StoreInstruction.java +++ b/jode/jode/expr/StoreInstruction.java @@ -84,6 +84,8 @@ public abstract class StoreInstruction extends Operator return 100; } + public abstract int getLValuePriority(); + public Type getOperandType(int i) { if (i == getLValueOperandCount()) { if (getOperatorIndex() == ASSIGN_OP)