<U> U getU() { ... }
class D <@Brain T extends B & A & @Tripe C> { ... }
U and T are type parameter names.
B, A, and C are type parameter bounds.
Tripe is an annotation on type parameter bound C.
Brain is an annotation on type parameter T.
com.github.javaparser.ast.nodeTypes.NodeWithTypeParameters
| Modifier and Type | Field and Description |
|---|---|
| private SimpleName | |
| private NodeList |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | TypeParameter(SimpleName name, NodeList<ClassOrInterfaceType> typeBound, NodeList<AnnotationExpr> annotations)
|
| public | TypeParameter(TokenRange tokenRange, SimpleName name, NodeList<ClassOrInterfaceType> typeBound, NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private. |
| name | back to summary |
|---|---|
| private SimpleName name | |
| typeBound | back to summary |
|---|---|
| private NodeList<ClassOrInterfaceType> typeBound | |
| TypeParameter | back to summary |
|---|---|
| public TypeParameter() | |
| TypeParameter | back to summary |
|---|---|
| public TypeParameter(final String name) | |
| TypeParameter | back to summary |
|---|---|
| public TypeParameter(final String name, final NodeList<ClassOrInterfaceType> typeBound) | |
| TypeParameter | back to summary |
|---|---|
public TypeParameter(SimpleName name, NodeList<ClassOrInterfaceType> typeBound, NodeList<AnnotationExpr> annotations)
| |
| TypeParameter | back to summary |
|---|---|
| public TypeParameter(TokenRange tokenRange, SimpleName name, NodeList<ClassOrInterfaceType> typeBound, NodeList<AnnotationExpr> annotations) 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.
| |
| asString | back to summary |
|---|---|
| public String asString() Implements abstract com.
| |
| asTypeParameter | back to summary |
|---|---|
| public TypeParameter asTypeParameter() Overrides com.
| |
| clone | back to summary |
|---|---|
| public TypeParameter 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 TypeParameterMetaModel getMetaModel() Overrides com.
| |
| getName | back to summary |
|---|---|
| public SimpleName getName() Implements com. Return the name of the paramenter.
| |
| getTypeBound | back to summary |
|---|---|
| public NodeList Return the list of
| |
| ifTypeParameter | back to summary |
|---|---|
| public void ifTypeParameter(Consumer<TypeParameter> action) Overrides com.
| |
| isTypeParameter | back to summary |
|---|---|
| public boolean isTypeParameter() Overrides com.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| resolve | back to summary |
|---|---|
| public ResolvedTypeVariable resolve() Implements abstract com. Implements com.
| |
| setAnnotations | back to summary |
|---|---|
| public TypeParameter setAnnotations(NodeList<AnnotationExpr> annotations) Overrides com. Implements com.
| |
| setName | back to summary |
|---|---|
| public TypeParameter setName(final SimpleName name) Implements com.
| |
| setTypeBound | back to summary |
|---|---|
public TypeParameter setTypeBound(final NodeList<ClassOrInterfaceType> typeBound)
| |
| toTypeParameter | back to summary |
|---|---|
| public Optional Overrides com.
| |