NodeWithRange<Node>
, NodeWithTokenRange<Node>
, Observable
, Visitable
, HasParentNode<Node>
, Cloneable
public final class SuperExpr extends Expression
World.super.greet()
is a MethodCallExpr of method name greet,
and scope "World.super" which is a SuperExpr with classExpr "World". super.name
is a
FieldAccessExpr of field greet, and a SuperExpr as its scope. The SuperExpr has no classExpr.ExplicitConstructorInvocationStmt
,
ThisExpr
Node.ObserverRegistrationMode, Node.Parsedness
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration
Constructor | Description |
---|---|
SuperExpr() |
|
SuperExpr(Expression classExpr) |
|
SuperExpr(TokenRange tokenRange,
Expression classExpr) |
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method | 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.
|
SuperExpr |
clone() |
|
Optional<Expression> |
getClassExpr() |
|
SuperExprMetaModel |
getMetaModel() |
|
boolean |
remove(Node node) |
|
SuperExpr |
removeClassExpr() |
|
boolean |
replace(Node node,
Node replacementNode) |
|
SuperExpr |
setClassExpr(Expression classExpr) |
Sets the classExpr
|
getAncestorOfType
addOrphanComment, customInitialization, equals, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getNodeLists, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getRange, getTokenRange, hasComment, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeForced, removeOrphanComment, replace, setAsParentNodeOf, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, toString, toString, tryAddImportToParentCompilationUnit, unregister
containsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBefore
public SuperExpr()
public SuperExpr(Expression classExpr)
@Generated("com.github.javaparser.generator.core.node.MainConstructorGenerator") public SuperExpr(TokenRange tokenRange, Expression classExpr)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Visitable
R
- the type of the return value of the visitorA
- the type the user argument passed to the visitorv
- the visitor implementationarg
- the argument passed to the visitor (of type A)public <A> void accept(VoidVisitor<A> v, A arg)
Visitable
A
- the type the argument passed for the visitorv
- the visitor implementationarg
- any value relevant for the visitor (of type A)@Generated("com.github.javaparser.generator.core.node.PropertyGenerator") public Optional<Expression> getClassExpr()
@Generated("com.github.javaparser.generator.core.node.PropertyGenerator") public SuperExpr setClassExpr(Expression classExpr)
classExpr
- the classExpr, can be null@Generated("com.github.javaparser.generator.core.node.RemoveMethodGenerator") public boolean remove(Node node)
remove
in class Expression
@Generated("com.github.javaparser.generator.core.node.RemoveMethodGenerator") public SuperExpr removeClassExpr()
@Generated("com.github.javaparser.generator.core.node.CloneGenerator") public SuperExpr clone()
clone
in class Expression
@Generated("com.github.javaparser.generator.core.node.GetMetaModelGenerator") public SuperExprMetaModel getMetaModel()
getMetaModel
in class Expression
@Generated("com.github.javaparser.generator.core.node.ReplaceMethodGenerator") public boolean replace(Node node, Node replacementNode)
replace
in class Expression
Copyright © 2007–2019. All rights reserved.