From 4d4845387c76a6ee670c7fd7b2f9518d46dcb814 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 5 Feb 1999 12:53:44 +0000 Subject: [PATCH] new methods and now final, so it can be optimized git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@187 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/VariableSet.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/jode/jode/flow/VariableSet.java b/jode/jode/flow/VariableSet.java index d1ac8a3..f27155e 100644 --- a/jode/jode/flow/VariableSet.java +++ b/jode/jode/flow/VariableSet.java @@ -29,7 +29,7 @@ import jode.LocalInfo; * Note that a variable set can contain LocalInfos that use the same * slot, but are different. */ -public class VariableSet implements Cloneable { +public final class VariableSet implements Cloneable { LocalInfo[] locals; int count; @@ -104,6 +104,14 @@ public class VariableSet implements Cloneable { locals[i] = locals[--count]; } + public LocalInfo elementAt(int i) { + return locals[i]; + } + + public int size() { + return count; + } + /** * Removes everything from this variable set. */