Package deltix.util.jcg.scg
Class ThisVariableImpl
- java.lang.Object
-
- deltix.util.jcg.scg.ThisVariableImpl
-
- All Implemented Interfaces:
JAnnotationContainer
,JExpr
,JInitMemberVariable
,JInitVariable
,JMember
,JMemberVariable
,JMethodArgument
,JVariable
public class ThisVariableImpl extends java.lang.Object implements JInitMemberVariable
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
comment
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description JExpr
access()
JExpr
access(JExpr obj)
void
addAnnotation(JAnnotation annotation)
void
addComment(java.lang.String comment)
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)
JClass
containerClass()
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)
int
modifiers()
java.lang.String
name()
JExpr
negate()
JExpr
not()
void
print(int outerProprity, SourceCodePrinter out)
Override to reference less-than-local variables.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)
void
printDeclaration(SourceCodePrinter out)
void
printDeclaration(SourceCodePrinter out)
protected void
printHead(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()
void
setInitValue(JExpr value)
JSwitchStatement
switchStmt()
JSwitchStatement
switchStmt(java.lang.String label)
JStatement
throwStmt()
java.lang.String
type()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface deltix.util.jcg.JAnnotationContainer
addAnnotation
-
Methods inherited from interface deltix.util.jcg.JExpr
alter, assign, assignExpr, asStmt, call, cast, cast, dec, decAndGet, field, getAndDec, getAndInc, inc, incAndGet, index, index, negate, not, returnStmt, switchStmt, switchStmt, throwStmt
-
Methods inherited from interface deltix.util.jcg.JInitVariable
setInitValue
-
-
-
-
Method Detail
-
containerClass
public JClass containerClass()
- Specified by:
containerClass
in interfaceJMember
-
access
public JExpr access()
- Specified by:
access
in interfaceJMemberVariable
-
access
public JExpr access(JExpr obj)
- Specified by:
access
in interfaceJMemberVariable
-
print
public void print(int outerProprity, SourceCodePrinter out) throws java.io.IOException
Override to reference less-than-local variables.- Throws:
java.io.IOException
-
addComment
public void addComment(java.lang.String comment)
- Specified by:
addComment
in interfaceJInitMemberVariable
-
printDeclaration
public abstract void printDeclaration(SourceCodePrinter out) throws java.io.IOException
- Throws:
java.io.IOException
-
printDeclaration
public void printDeclaration(SourceCodePrinter out) throws java.io.IOException
- Throws:
java.io.IOException
-
setInitValue
public void setInitValue(JExpr value)
- Specified by:
setInitValue
in interfaceJInitVariable
-
addAnnotation
public void addAnnotation(JAnnotation annotation)
- Specified by:
addAnnotation
in interfaceJAnnotationContainer
-
printHead
protected final void printHead(SourceCodePrinter out) throws java.io.IOException
- Throws:
java.io.IOException
-
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
-
-