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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypeVariable<O>getTypeVariable(String name)Returns the namedTypeVariable.List<? extends TypeVariable<O>>getTypeVariables()Returns all the generic types associated with this objectbooleanhasTypeVariable(String name)Returns if the value is declared as aTypeVariable
-
-
-
Method Detail
-
getTypeVariables
List<? extends TypeVariable<O>> getTypeVariables()
Returns all the generic types associated with this object
-
getTypeVariable
TypeVariable<O> getTypeVariable(String name)
Returns the namedTypeVariable.- Parameters:
name-- Returns:
- TypeVariable or
null
-
hasTypeVariable
boolean hasTypeVariable(String name)
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
-
-