public final class TypeParameter extends Node
This class represents the declaration of a genetics argument.
The TypeParameter is constructed following the syntax:| TypeParameter | ::= |
<IDENTIFIER> ( "extends" ClassOrInterfaceType ( "&" ClassOrInterfaceType )* )?
|
| Constructor and Description |
|---|
TypeParameter() |
TypeParameter(int beginLine,
int beginColumn,
int endLine,
int endColumn,
String name,
List<AnnotationExpr> annotations,
List<ClassOrInterfaceType> typeBound) |
TypeParameter(String name,
List<AnnotationExpr> annotations,
List<ClassOrInterfaceType> typeBound) |
| 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.
|
List<AnnotationExpr> |
getAnnotations() |
String |
getName()
Return the name of the paramenter.
|
List<ClassOrInterfaceType> |
getTypeBound()
Return the list of
ClassOrInterfaceType that this parameter
extends. |
void |
setName(String name)
Sets the name of this type parameter.
|
void |
setTypeBound(List<ClassOrInterfaceType> typeBound)
Sets the list o types.
|
equals, getBeginColumn, getBeginLine, getData, getEndColumn, getEndLine, hashCode, setBeginColumn, setBeginLine, setData, setEndColumn, setEndLine, toStringpublic TypeParameter()
public TypeParameter(String name, List<AnnotationExpr> annotations, List<ClassOrInterfaceType> typeBound)
public TypeParameter(int beginLine,
int beginColumn,
int endLine,
int endColumn,
String name,
List<AnnotationExpr> annotations,
List<ClassOrInterfaceType> typeBound)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic String getName()
public List<ClassOrInterfaceType> getTypeBound()
ClassOrInterfaceType that this parameter
extends. Return null null if there are no type.nullpublic void setName(String name)
name - the name to setpublic void setTypeBound(List<ClassOrInterfaceType> typeBound)
typeBound - the typeBound to setpublic List<AnnotationExpr> getAnnotations()