Package deltix.util.jcg.scg
Class JCompStmtImpl
- java.lang.Object
-
- deltix.util.jcg.scg.JCompStmtImpl
-
- All Implemented Interfaces:
JCompoundStatement
,JStatement
,JVariableContainer
,JCompStmtElem
public class JCompStmtImpl extends java.lang.Object implements JCompoundStatement
-
-
Constructor Summary
Constructors Constructor Description JCompStmtImpl(JContextImpl context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(JExpr e)
void
add(JStatement stmt)
protected void
add(JCompStmtElem e)
void
addComment(java.lang.String text)
void
addFront(JStatement stmt)
JLocalVariable
addVar(int modifiers, JType type, JType[] typeArgs, java.lang.String name, JExpr initValue)
JLocalVariable
addVar(int modifiers, JType type, java.lang.String name)
JLocalVariable
addVar(int modifiers, JType type, java.lang.String name, JExpr initValue)
JInitVariable
addVar(int modifiers, java.lang.Class<?> type, java.lang.Class<?>[] typeArgs, java.lang.String name, JExpr initValue)
JLocalVariable
addVar(int modifiers, java.lang.Class<?> type, java.lang.String name)
JLocalVariable
addVar(int modifiers, java.lang.Class<?> type, java.lang.String name, JExpr initValue)
boolean
isEmpty()
void
print(SourceCodePrinter out)
void
printElement(SourceCodePrinter out)
-
-
-
Constructor Detail
-
JCompStmtImpl
public JCompStmtImpl(JContextImpl context)
-
-
Method Detail
-
add
protected final void add(JCompStmtElem e)
-
addComment
public void addComment(java.lang.String text)
- Specified by:
addComment
in interfaceJCompoundStatement
- Specified by:
addComment
in interfaceJVariableContainer
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceJCompoundStatement
-
printElement
public void printElement(SourceCodePrinter out) throws java.io.IOException
- Specified by:
printElement
in interfaceJCompStmtElem
- Throws:
java.io.IOException
-
print
public void print(SourceCodePrinter out) throws java.io.IOException
- Throws:
java.io.IOException
-
add
public void add(JStatement stmt)
- Specified by:
add
in interfaceJCompoundStatement
-
addFront
public void addFront(JStatement stmt)
- Specified by:
addFront
in interfaceJCompoundStatement
-
add
public void add(JExpr e)
- Specified by:
add
in interfaceJCompoundStatement
-
addVar
public JLocalVariable addVar(int modifiers, java.lang.Class<?> type, java.lang.String name)
- Specified by:
addVar
in interfaceJCompoundStatement
- Specified by:
addVar
in interfaceJVariableContainer
-
addVar
public JLocalVariable addVar(int modifiers, java.lang.Class<?> type, java.lang.String name, JExpr initValue)
- Specified by:
addVar
in interfaceJCompoundStatement
- Specified by:
addVar
in interfaceJVariableContainer
-
addVar
public JInitVariable addVar(int modifiers, java.lang.Class<?> type, java.lang.Class<?>[] typeArgs, java.lang.String name, JExpr initValue)
- Specified by:
addVar
in interfaceJVariableContainer
-
addVar
public JLocalVariable addVar(int modifiers, JType type, java.lang.String name)
- Specified by:
addVar
in interfaceJCompoundStatement
- Specified by:
addVar
in interfaceJVariableContainer
-
addVar
public JLocalVariable addVar(int modifiers, JType type, java.lang.String name, JExpr initValue)
- Specified by:
addVar
in interfaceJCompoundStatement
- Specified by:
addVar
in interfaceJVariableContainer
-
addVar
public JLocalVariable addVar(int modifiers, JType type, JType[] typeArgs, java.lang.String name, JExpr initValue)
- Specified by:
addVar
in interfaceJCompoundStatement
-
-