Class JStmtIf
- java.lang.Object
-
- com.inductiveautomation.snap.javatree.JNode
-
- com.inductiveautomation.snap.javatree.JStmt
-
- com.inductiveautomation.snap.javatree.JStmtIf
-
public class JStmtIf extends JStmt
A JStatement for if() statements.
-
-
Constructor Summary
Constructors Constructor Description JStmtIf()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JStmtBlock
getBlock()
Returns the statement block.JExpr
getConditional()
Returns the conditional.boolean
isBlock()
Returns whether statement has a block associated with it.-
Methods inherited from class com.inductiveautomation.snap.javatree.JNode
addChild, buildChildren, getChild, getChildCount, getChildren, getClassLoader, getClassName, getClassNameImpl, getClassRef, getClassRefImpl, getEnclosingClassDecl, getEnclosingMemberDecl, getEnclosingMethodDecl, getEnd, getEndToken, getFile, getJClass, getLineIndex, getName, getNameImpl, getNodeAtCharIndex, getNodeFields, getNodeFieldsImpl, getNodeParents, getNodePath, getNodeString, getOthers, getParent, getParent, getReferencedClasses, getReferencedClassNames, getReferencedClassNames, getReferencedClassNames, getStart, getStartToken, getString, getVariableDecl, getVariableDeclInside, getVariableDecls, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
-
-
-
-
Method Detail
-
getConditional
public JExpr getConditional()
Returns the conditional.
-
isBlock
public boolean isBlock()
Returns whether statement has a block associated with it.
-
getBlock
public JStmtBlock getBlock()
Returns the statement block.
-
-