From 977e4a6e8de667a81b3eb0a9f426d2bdf8c6ac99 Mon Sep 17 00:00:00 2001 From: hoenicke Date: Fri, 19 Jan 2007 13:54:14 +0000 Subject: [PATCH] Added accessor method getCondition to IfThenElseBlock git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1405 379699f6-c40d-0410-875b-85095c16579e --- jode/src/net/sf/jode/flow/IfThenElseBlock.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jode/src/net/sf/jode/flow/IfThenElseBlock.java b/jode/src/net/sf/jode/flow/IfThenElseBlock.java index b664640..771e0d3 100644 --- a/jode/src/net/sf/jode/flow/IfThenElseBlock.java +++ b/jode/src/net/sf/jode/flow/IfThenElseBlock.java @@ -62,6 +62,13 @@ public class IfThenElseBlock extends StructuredBlock { this.cond = cond; } + /** + * Gets the condition. The expression returned has boolean type. + */ + public Expression getCondition() { + return cond; + } + /** * Sets the then block. * @param thenBlock the then block, must be non null.