Top Description Fields Constructors Methods
sun.reflect.generics.tree

public Class FormalTypeParameter

extends Object
implements TypeTree
Class Inheritance
All Implemented Interfaces
sun.reflect.generics.tree.TypeTree, sun.reflect.generics.tree.Tree
Imports
sun.reflect.generics.visitor.TypeTreeVisitor

AST that represents a formal type parameter.

Field Summary

Modifier and TypeField and Description
private final FieldTypeSignature[]
private final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
accept(TypeTreeVisitor<?>
a TypeTreeVisitor that will process this tree
v
)

Implements sun.reflect.generics.tree.TypeTree.accept.

Accept method for the visitor pattern.
public FieldTypeSignature[]
public String
public static FormalTypeParameter

Returns:

a formal type parameter with the requested name and bounds
make
(String
the name of the type variable to be created by this method.
n
,
FieldTypeSignature[]
- the bounds of the type variable to be created by this method.
bs
)

Factory method.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

boundsback to summary
private final FieldTypeSignature[] bounds
nameback to summary
private final String name

Constructor Detail

FormalTypeParameterback to summary
private FormalTypeParameter(String n, FieldTypeSignature[] bs)

Method Detail

acceptback to summary
public void accept(TypeTreeVisitor<?> v)

Implements sun.reflect.generics.tree.TypeTree.accept.

Doc from sun.reflect.generics.tree.TypeTree.accept.

Accept method for the visitor pattern.

Parameters
v:TypeTreeVisitor<?>

a TypeTreeVisitor that will process this tree

getBoundsback to summary
public FieldTypeSignature[] getBounds()
getNameback to summary
public String getName()
makeback to summary
public static FormalTypeParameter make(String n, FieldTypeSignature[] bs)

Factory method. Returns a formal type parameter with the requested name and bounds.

Parameters
n:String

the name of the type variable to be created by this method.

bs:FieldTypeSignature[]

- the bounds of the type variable to be created by this method.

Returns:FormalTypeParameter

a formal type parameter with the requested name and bounds