NodeWithRange<TypeExpr>
, NodeWithTokenRange<TypeExpr>
, NodeWithType<TypeExpr,Type>
, Observable
, Visitable
, HasParentNode<TypeExpr>
, Cloneable
public final class TypeExpr extends Expression implements NodeWithType<TypeExpr,Type>
World::greet
the ClassOrInterfaceType "World" is wrapped in a TypeExpr
before it is set as the scope of the MethodReferenceExpr.Node.ObserverRegistrationMode, Node.Parsedness
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration
Constructor | Description |
---|---|
TypeExpr() |
|
TypeExpr(Type type) |
|
TypeExpr(TokenRange tokenRange,
Type type) |
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.
|
TypeExpr |
clone() |
|
TypeExprMetaModel |
getMetaModel() |
|
Type |
getType() |
Gets the type
|
boolean |
remove(Node node) |
|
boolean |
replace(Node node,
Node replacementNode) |
|
TypeExpr |
setType(Type type) |
Sets the type
|
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
setType, setType, tryAddImportToParentCompilationUnit
public TypeExpr()
public TypeExpr(Type type)
@Generated("com.github.javaparser.generator.core.node.MainConstructorGenerator") public TypeExpr(TokenRange tokenRange, Type type)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Visitable
accept
in interface 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
@Generated("com.github.javaparser.generator.core.node.PropertyGenerator") public Type getType()
NodeWithType
getType
in interface NodeWithType<TypeExpr,Type>
@Generated("com.github.javaparser.generator.core.node.PropertyGenerator") public TypeExpr setType(Type type)
NodeWithType
setType
in interface NodeWithType<TypeExpr,Type>
type
- the type@Generated("com.github.javaparser.generator.core.node.RemoveMethodGenerator") public boolean remove(Node node)
remove
in class Expression
@Generated("com.github.javaparser.generator.core.node.CloneGenerator") public TypeExpr clone()
clone
in class Expression
@Generated("com.github.javaparser.generator.core.node.GetMetaModelGenerator") public TypeExprMetaModel 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.