World.this.greet() is a MethodCallExpr of method name greet,
and scope "World.this" which is a ThisExpr with typeName "World". this.name is a FieldAccessExpr of field greet, and a ThisExpr as its scope.
This ThisExpr has no typeName.
com.github.javaparser.ast.stmt.ExplicitConstructorInvocationStmt , SuperExpr
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | ThisExpr(TokenRange tokenRange, Name typeName)
This constructor is used by the parser and is considered private. |
| Modifier and Type | Method and Description |
|---|---|
| public <R, A> R | accept(final GenericVisitor<R, A>
the visitor implementation v, final A the argument passed to the visitor (of type A) arg)Implements com. |
| public <A> void | accept(final VoidVisitor<A>
the visitor implementation v, final A any value relevant for the visitor (of type A) arg)Implements com. |
| public ThisExpr | |
| public ThisExpr | clone()
Creates and returns a copy of this object.
|
| public ThisExprMetaModel | |
| public Optional | |
| public void | ifThisExpr(Consumer<ThisExpr> action)
Overrides com. |
| public boolean | |
| public boolean | |
| public ThisExpr | |
| public ThisExpr | |
| public boolean | replace(Node node, Node replacementNode)
Overrides com. |
| public ResolvedTypeDeclaration | |
| public ThisExpr | |
| public Optional |
| typeName | back to summary |
|---|---|
| private Name typeName
| |
| ThisExpr | back to summary |
|---|---|
| public ThisExpr() | |
| ThisExpr | back to summary |
|---|---|
public ThisExpr(final Name typeName)
| |
| ThisExpr | back to summary |
|---|---|
| public ThisExpr(TokenRange tokenRange, Name typeName) This constructor is used by the parser and is considered private.
| |
| accept | back to summary |
|---|---|
| public <R, A> R accept(final GenericVisitor<R, A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| accept | back to summary |
|---|---|
| public <A> void accept(final VoidVisitor<A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| asThisExpr | back to summary |
|---|---|
| public ThisExpr asThisExpr() Overrides com.
| |
| clone | back to summary |
|---|---|
| public ThisExpr clone() Overrides com. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getMetaModel | back to summary |
|---|---|
| public ThisExprMetaModel getMetaModel() Overrides com.
| |
| getTypeName | back to summary |
|---|---|
public Optional
| |
| ifThisExpr | back to summary |
|---|---|
| public void ifThisExpr(Consumer<ThisExpr> action) Overrides com.
| |
| isThisExpr | back to summary |
|---|---|
| public boolean isThisExpr() Overrides com.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| removeClassName | back to summary |
|---|---|
public ThisExpr removeClassName()
| |
| removeTypeName | back to summary |
|---|---|
public ThisExpr removeTypeName()
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| resolve | back to summary |
|---|---|
| public ResolvedTypeDeclaration resolve() Implements com.
| |
| setTypeName | back to summary |
|---|---|
public ThisExpr setTypeName(final Name typeName)
| |
| toThisExpr | back to summary |
|---|---|
| public Optional Overrides com.
| |