org.siebengeisslein.pclass
Class IfStatement
java.lang.Object
org.siebengeisslein.client.Persistent
org.siebengeisslein.pclass.AbstractStatement
org.siebengeisslein.pclass.BlockStatement
org.siebengeisslein.pclass.IfStatement
- All Implemented Interfaces:
- CommitConstrained, Instrumented, CodeFragment, ExpressionContainer, Statement
public class IfStatement
- extends BlockStatement
- implements Statement, ExpressionContainer
| Methods inherited from class org.siebengeisslein.pclass.BlockStatement |
add, addAfter, addBefore, delete, getDataDirectory, getLineCount, getMethod, getNext, getOwnerClass, getStatementAtLine, getStatements, getTypeManager, getVariableManager, needsReturn, next, onRemove, prev, remove, replace, size, toString, toString |
| Methods inherited from class org.siebengeisslein.client.Persistent |
abort, clearUserLocals, clone, commit, disposeTransient, getGroup, getRef, getTransientValue, hashCode, initTransient, isWriteTransaction, joinWriteTransaction, readLock, setGroup, setTransientValue, toPersistent, toRef, writeExternal, writeLock |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
IfStatement
public IfStatement(PInternalMethod method,
BlockStatement parent,
VariableManager vm)
getCondition
public Expression getCondition()
setCondition
public void setCondition(Expression condition)
replaceChild
public void replaceChild(Expression child,
Expression newChild)
- Specified by:
replaceChild in interface ExpressionContainer
removeChild
public void removeChild(Expression child)
- Specified by:
removeChild in interface ExpressionContainer
containsChild
public boolean containsChild(Expression expression)
- Specified by:
containsChild in interface ExpressionContainer
checkConstraints
public void checkConstraints()
throws ConstraintViolationException
- Specified by:
checkConstraints in interface CommitConstrained
- Throws:
ConstraintViolationException
visit
public void visit(PClass clazz,
org.objectweb.asm.MethodVisitor mv,
Frame frame)
- Specified by:
visit in interface Statement- Overrides:
visit in class BlockStatement