public class JCastOperation extends JExpression
Constructor and Description |
---|
JCastOperation(SourceInfo info,
JType castType,
JExpression expr) |
Modifier and Type | Method and Description |
---|---|
JType |
getCastType() |
JExpression |
getExpr() |
JType |
getType()
Returns the type of this expression.
|
boolean |
hasSideEffects() |
void |
resolve(JType newType)
Resolve an external reference during AST stitching.
|
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
makeStatement
getSourceInfo, setSourceInfo, toSource, toString
public JCastOperation(SourceInfo info, JType castType, JExpression expr)
public JType getCastType()
public JExpression getExpr()
public JType getType()
HasType
public boolean hasSideEffects()
hasSideEffects
in class JExpression
public void resolve(JType newType)
public void traverse(JVisitor visitor, Context ctx)
JVisitable
visitor
- the visitor that should traverse this nodectx
- the context of an existing traversalCopyright © 2018. All rights reserved.