Package org.jboss.forge.roaster.model
Interface GenericCapable<O extends JavaType<O>>
- All Known Subinterfaces:
GenericCapableSource<O,,T> JavaClass<O>,JavaClassSource,JavaInterface<O>,JavaInterfaceSource,MethodSource<O>
public interface GenericCapable<O extends JavaType<O>>
Represents a Java element that may define type variables.
- Author:
- mbenson
-
Method Summary
Modifier and TypeMethodDescriptiongetTypeVariable(String name) Returns the namedTypeVariable.List<? extends TypeVariable<O>>Returns all the generic types associated with this objectbooleanhasTypeVariable(String name) Returns if the value is declared as aTypeVariable
-
Method Details
-
getTypeVariables
List<? extends TypeVariable<O>> getTypeVariables()Returns all the generic types associated with this object -
getTypeVariable
Returns the namedTypeVariable.- Parameters:
name-- Returns:
- TypeVariable or
null
-
hasTypeVariable
Returns if the value is declared as aTypeVariable- Parameters:
name- the type name- Returns:
trueif the type name is declared as a type variable,false
-