public final class CastExpr extends Expression implements NodeWithType<CastExpr>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
CastExpr() |
CastExpr(Range range,
Type type,
Expression expr) |
CastExpr(Type type,
Expression expr) |
Modifier and Type | Method and Description |
---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
Expression |
getExpr() |
Type |
getType()
Gets the type
|
void |
setExpr(Expression expr) |
CastExpr |
setType(Type type)
Sets the type
|
addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getChildrenNodes, getComment, getData, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, hasComment, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setData, setEnd, setLineComment, setParentNode, setRange, toString, toStringWithoutComments, tryAddImportToParentCompilationUnit
finalize, getClass, notify, notifyAll, wait, wait, wait
setType
public CastExpr()
public CastExpr(Type type, Expression expr)
public CastExpr(Range range, Type type, Expression expr)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public Expression getExpr()
public Type getType()
NodeWithType
getType
in interface NodeWithType<CastExpr>
public void setExpr(Expression expr)
public CastExpr setType(Type type)
NodeWithType
setType
in interface NodeWithType<CastExpr>
type
- the typeCopyright © 2007–2016. All rights reserved.