public final class FieldAccessExpr extends Expression implements NodeWithTypeArguments<FieldAccessExpr>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION
Constructor and Description |
---|
FieldAccessExpr() |
FieldAccessExpr(Expression scope,
String field) |
FieldAccessExpr(Range range,
Expression scope,
List<Type<?>> typeArguments,
String field) |
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.
|
String |
getField() |
NameExpr |
getFieldExpr() |
Expression |
getScope() |
List<Type<?>> |
getTypeArguments() |
FieldAccessExpr |
setField(String field) |
FieldAccessExpr |
setFieldExpr(NameExpr field) |
FieldAccessExpr |
setScope(Expression scope) |
FieldAccessExpr |
setTypeArguments(List<Type<?>> types)
Allows you to set the generic arguments
|
addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getChildrenNodes, getComment, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, getUserData, hasComment, hashCode, isPositionedAfter, isPositionedBefore, remove, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setEnd, setLineComment, setParentNode, setRange, setUserData, toString, toStringWithoutComments, tryAddImportToParentCompilationUnit
finalize, getClass, notify, notifyAll, wait, wait, wait
isUsingDiamondOperator, removeTypeArguments, setDiamondOperator, setTypeArguments
public FieldAccessExpr()
public FieldAccessExpr(Expression scope, String field)
public FieldAccessExpr(Range range, Expression scope, List<Type<?>> typeArguments, String field)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public String getField()
public NameExpr getFieldExpr()
public Expression getScope()
public FieldAccessExpr setField(String field)
public FieldAccessExpr setFieldExpr(NameExpr field)
public FieldAccessExpr setScope(Expression scope)
public List<Type<?>> getTypeArguments()
getTypeArguments
in interface NodeWithTypeArguments<FieldAccessExpr>
public FieldAccessExpr setTypeArguments(List<Type<?>> types)
NodeWithTypeArguments
setTypeArguments
in interface NodeWithTypeArguments<FieldAccessExpr>
types
- The list of types of the genericsCopyright © 2007–2016. All rights reserved.