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.Stringcomment
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description JExpraccess()JExpraccess(JExpr obj)voidaddAnnotation(JAnnotation annotation)voidaddComment(java.lang.String comment)JStatementalter(java.lang.String op, JExpr arg)JStatementassign(JExpr value)JExprassignExpr(JExpr value)JStatementasStmt()JExprcall(java.lang.String method, JExpr... args)JExprcast(JType toClass)JExprcast(java.lang.Class<?> toClass)JClasscontainerClass()JStatementdec()JExprdecAndGet()JExprfield(java.lang.String fieldId)JExprgetAndDec()JExprgetAndInc()JStatementinc()JExprincAndGet()JExprindex(int index)JExprindex(JExpr index)intmodifiers()java.lang.Stringname()JExprnegate()JExprnot()voidprint(int outerProprity, SourceCodePrinter out)Override to reference less-than-local variables.voidprint(SourceCodePrinter out)protected voidprintBinary(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)voidprintDeclaration(SourceCodePrinter out)voidprintDeclaration(SourceCodePrinter out)protected voidprintHead(SourceCodePrinter out)protected voidprintPostfix(int outerPriority, deltix.util.jcg.scg.JExprImplBase left, java.lang.String postfix, int thisPriority, SourceCodePrinter out)protected voidprintPrefix(int outerPriority, java.lang.String prefix, int thisPriority, deltix.util.jcg.scg.JExprImplBase right, SourceCodePrinter out)JStatementreturnStmt()voidsetInitValue(JExpr value)JSwitchStatementswitchStmt()JSwitchStatementswitchStmt(java.lang.String label)JStatementthrowStmt()java.lang.Stringtype()-
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:
containerClassin interfaceJMember
-
access
public JExpr access()
- Specified by:
accessin interfaceJMemberVariable
-
access
public JExpr access(JExpr obj)
- Specified by:
accessin interfaceJMemberVariable
-
print
public void print(int outerProprity, SourceCodePrinter out) throws java.io.IOExceptionOverride to reference less-than-local variables.- Throws:
java.io.IOException
-
addComment
public void addComment(java.lang.String comment)
- Specified by:
addCommentin 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:
setInitValuein interfaceJInitVariable
-
addAnnotation
public void addAnnotation(JAnnotation annotation)
- Specified by:
addAnnotationin 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:
assignExprin 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:
returnStmtin interfaceJExpr
-
asStmt
public JStatement asStmt()
-
switchStmt
public JSwitchStatement switchStmt()
- Specified by:
switchStmtin interfaceJExpr
-
switchStmt
public JSwitchStatement switchStmt(java.lang.String label)
- Specified by:
switchStmtin interfaceJExpr
-
-