public class

FormalTypeParameter

extends Object
implements TypeTree
java.lang.Object
   ↳ sun.reflect.generics.tree.FormalTypeParameter

Class Overview

AST that represents a formal type parameter.

Summary

Public Methods
void accept(TypeTreeVisitor<?> v)
Accept method for the visitor pattern.
FieldTypeSignature[] getBounds()
String getName()
static FormalTypeParameter make(String n, FieldTypeSignature[] bs)
Factory method.
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.reflect.generics.tree.TypeTree

Public Methods

public void accept (TypeTreeVisitor<?> v)

Accept method for the visitor pattern.

Parameters
v - a TypeTreeVisitor that will process this tree

public FieldTypeSignature[] getBounds ()

public String getName ()

public static FormalTypeParameter make (String n, FieldTypeSignature[] bs)

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

Parameters
n the name of the type variable to be created by this method.
bs - the bounds of the type variable to be created by this method.
Returns
  • a formal type parameter with the requested name and bounds