Package deltix.util.jcg.scg
Class JArrayInitializerImpl
- java.lang.Object
-
- deltix.util.jcg.scg.JArrayInitializerImpl
-
- All Implemented Interfaces:
JArrayInitializer
,JExpr
public class JArrayInitializerImpl extends java.lang.Object implements JArrayInitializer
-
-
Constructor Summary
Constructors Constructor Description JArrayInitializerImpl(JContextImpl context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(JExpr value)
JStatement
alter(java.lang.String op, JExpr arg)
JStatement
assign(JExpr value)
JExpr
assignExpr(JExpr value)
JStatement
asStmt()
JExpr
call(java.lang.String method, JExpr... args)
JExpr
cast(JType toClass)
JExpr
cast(java.lang.Class<?> toClass)
JStatement
dec()
JExpr
decAndGet()
JExpr
field(java.lang.String fieldId)
JExpr
getAndDec()
JExpr
getAndInc()
JStatement
inc()
JExpr
incAndGet()
JExpr
index(int index)
JExpr
index(JExpr index)
JExpr
negate()
JExpr
not()
void
print(int outerPriority, SourceCodePrinter out)
void
print(SourceCodePrinter out)
protected void
printBinary(int outerPriority, deltix.util.jcg.scg.JExprImplBase left, java.lang.String infix, int thisPriority, deltix.util.jcg.scg.InfixAssociation thisAssociation, deltix.util.jcg.scg.JExprImplBase right, SourceCodePrinter out)
protected void
printPostfix(int outerPriority, deltix.util.jcg.scg.JExprImplBase left, java.lang.String postfix, int thisPriority, SourceCodePrinter out)
protected void
printPrefix(int outerPriority, java.lang.String prefix, int thisPriority, deltix.util.jcg.scg.JExprImplBase right, SourceCodePrinter out)
JStatement
returnStmt()
JSwitchStatement
switchStmt()
JSwitchStatement
switchStmt(java.lang.String label)
JStatement
throwStmt()
-
-
-
Constructor Detail
-
JArrayInitializerImpl
public JArrayInitializerImpl(JContextImpl context)
-
-
Method Detail
-
print
public void print(int outerPriority, SourceCodePrinter out) throws java.io.IOException
- Throws:
java.io.IOException
-
add
public void add(JExpr value)
- Specified by:
add
in interfaceJArrayInitializer
-
print
public final void print(SourceCodePrinter out) throws java.io.IOException
- Throws:
java.io.IOException
-
printBinary
protected final void printBinary(int outerPriority, deltix.util.jcg.scg.JExprImplBase left, java.lang.String infix, int thisPriority, deltix.util.jcg.scg.InfixAssociation thisAssociation, deltix.util.jcg.scg.JExprImplBase right, SourceCodePrinter out) throws java.io.IOException
- Throws:
java.io.IOException
-
printPrefix
protected final void printPrefix(int outerPriority, java.lang.String prefix, int thisPriority, deltix.util.jcg.scg.JExprImplBase right, SourceCodePrinter out) throws java.io.IOException
- Throws:
java.io.IOException
-
printPostfix
protected final void printPostfix(int outerPriority, deltix.util.jcg.scg.JExprImplBase left, java.lang.String postfix, int thisPriority, SourceCodePrinter out) throws java.io.IOException
- Throws:
java.io.IOException
-
inc
public JStatement inc()
-
assign
public JStatement assign(JExpr value)
-
assignExpr
public JExpr assignExpr(JExpr value)
- Specified by:
assignExpr
in interfaceJExpr
-
dec
public JStatement dec()
-
alter
public JStatement alter(java.lang.String op, JExpr arg)
-
throwStmt
public JStatement throwStmt()
-
returnStmt
public JStatement returnStmt()
- Specified by:
returnStmt
in interfaceJExpr
-
asStmt
public JStatement asStmt()
-
switchStmt
public JSwitchStatement switchStmt()
- Specified by:
switchStmt
in interfaceJExpr
-
switchStmt
public JSwitchStatement switchStmt(java.lang.String label)
- Specified by:
switchStmt
in interfaceJExpr
-
-