Package | Description |
---|---|
oracle.javatools.parser.java.v2 |
The parser API.
|
oracle.javatools.parser.java.v2.model |
The parser model API.
|
oracle.javatools.parser.java.v2.util |
Various utilities for use with the parser.
|
Modifier and Type | Method and Description |
---|---|
SourceTypeParameter |
SourceFactory.createTypeParameter(java.lang.String name)
Creates a type parameter.
|
SourceTypeParameter |
SourceFactory.createTypeParameter(java.lang.String name, SourceTypeReference type)
Convenience method.
|
abstract SourceTypeParameter |
SourceFactory.createTypeParameter(java.lang.String name, SourceTypeReference[] bounds)
Creates a type parameter.
|
Modifier and Type | Method and Description |
---|---|
abstract SourceClass |
SourceFactory.createClass(int tyKind, java.lang.String name, SourceTypeParameter[] tyParameters, SourceSuperclassClause superclassClause, SourceInterfacesClause interfacesClause, SourceClassBody body)
Creates a class declaration.
|
abstract SourceMethod |
SourceFactory.createConstructor(SourceTypeParameter[] typeParameters, SourceFormalParameterList parameters, SourceThrowsClause throwsClause, SourceBlock block)
Creates a constructor declaration.
|
abstract SourceMethod |
SourceFactory.createMethod(SourceTypeParameter[] tyParameters, SourceTypeReference returnType, java.lang.String methodName, SourceFormalParameterList parameters, SourceThrowsClause throwsClause, SourceBlock block)
Creates a method declaration.
|
Modifier and Type | Field and Description |
---|---|
static SourceTypeParameter[] |
SourceTypeParameter.EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
java.util.List<SourceTypeParameter> |
SourceMethod.getSourceTypeParameters()
Gets the declared type parameters on this method.
|
java.util.List<SourceTypeParameter> |
SourceClass.getSourceTypeParameters()
Gets the list of type parameters declared on this class.
|
Modifier and Type | Method and Description |
---|---|
void |
Usages.declareTypeParameter(SourceTypeParameter s)
Declares a type parameter, part of a generic declaration.
|
void |
SourceVisitor.whenEnterTypeParameter(SourceTypeParameter sourceTypeParameter) |
void |
SourceVisitor.whenExitTypeParameter(SourceTypeParameter sourceTypeParameter) |