|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.antlrjavaparser.api.Node
com.github.antlrjavaparser.api.TypeParameter
public final class TypeParameter
This class represents the declaration of a genetics argument.
The TypeParameter is constructed following the syntax:
TypeParameter
::=
<IDENTIFIER> ( "extends" ClassOrInterfaceType ( "&" ClassOrInterfaceType )* )?
| Constructor Summary | |
|---|---|
TypeParameter()
|
|
TypeParameter(int beginLine,
int beginColumn,
int endLine,
int endColumn,
String name,
List<ClassOrInterfaceType> typeBound)
|
|
TypeParameter(String name,
List<ClassOrInterfaceType> typeBound)
|
|
| Method Summary | ||
|---|---|---|
|
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support. |
|
|
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support. |
|
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. |
|
| Methods inherited from class com.github.antlrjavaparser.api.Node |
|---|
equals, getBeginColumn, getBeginComments, getBeginLine, getData, getEndColumn, getEndComments, getEndLine, getInternalComments, hashCode, setBeginColumn, setBeginComments, setBeginLine, setData, setEndColumn, setEndComments, setEndLine, setInternalComments, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TypeParameter()
public TypeParameter(String name,
List<ClassOrInterfaceType> typeBound)
public TypeParameter(int beginLine,
int beginColumn,
int endLine,
int endColumn,
String name,
List<ClassOrInterfaceType> typeBound)
| Method Detail |
|---|
public <R,A> R accept(GenericVisitor<R,A> v,
A arg)
Node
accept in class NodeR - the type the return value of the visitorA - the type the argument passed for the visitorv - the visitor implementationarg - any value relevant for the visitor
public <A> void accept(VoidVisitor<A> v,
A arg)
Node
accept in class NodeA - the type the argument passed for the visitorv - the visitor implementationarg - any value relevant for the visitorpublic 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 set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||