public abstract class AbstractJGenerifiableImpl extends Object implements IJGenerifiable, IJDeclaration, IJOwned
IJGenerifiable
.Constructor and Description |
---|
AbstractJGenerifiableImpl() |
Modifier and Type | Method and Description |
---|---|
void |
declare(JFormatter f) |
JTypeVar |
generify(String name)
Adds a new type variable to this declaration.
|
JTypeVar |
generify(String name,
AbstractJClass _extends)
Adds a new type variable to this declaration with a bound.
|
JTypeVar |
generify(String name,
Class<?> _extends)
Adds a new type variable to this declaration with a bound.
|
List<JTypeVar> |
typeParamList()
Get a list of all type parameters of this declaration.
|
JTypeVar[] |
typeParams()
Iterates all the type parameters of this declaration.
|
public void declare(@Nonnull JFormatter f)
declare
in interface IJDeclaration
@Nonnull public JTypeVar generify(@Nonnull String name)
IJGenerifiable
generify
in interface IJGenerifiable
name
- type variable nameJTypeVar
@Nonnull public JTypeVar generify(@Nonnull String name, @Nonnull Class<?> _extends)
IJGenerifiable
generify
in interface IJGenerifiable
name
- type variable name_extends
- Bound classJTypeVar
@Nonnull public JTypeVar generify(@Nonnull String name, @Nonnull AbstractJClass _extends)
IJGenerifiable
generify
in interface IJGenerifiable
name
- type variable name_extends
- Bound classJTypeVar
@Nonnull public JTypeVar[] typeParams()
IJGenerifiable
typeParams
in interface IJGenerifiable
@Nonnull public List<JTypeVar> typeParamList()
IJGenerifiable
typeParamList
in interface IJGenerifiable
Copyright © 2013–2015 Philip Helger. All rights reserved.