Methods in
org.eclipse.jdt.core.dom with parameters of type
Type
|
ArrayType
|
AST.
newArrayType
(
Type componentType)
Creates and returns a new unparented array type node with the given
component type, which may be another array type. |
ArrayType
|
AST.
newArrayType
(
Type elementType,
int dimensions)
Creates and returns a new unparented array type node with the given
element type and number of dimensions. |
ParameterizedType
|
AST.
newParameterizedType
(
Type type)
Creates and returns a new unparented parameterized type node with the
given type and an empty list of type arguments. |
QualifiedType
|
AST.
newQualifiedType
(
Type qualifier,
SimpleName name)
Creates and returns a new unparented qualified type node with
the given qualifier type and name. |
void
|
WildcardType.
setBound
(
Type type)
Sets the bound of this wildcard type to the given type. |
void
|
WildcardType.
setBound
(
Type type,
boolean isUpperBound)
Sets the bound of this wildcard type to the given type and
marks it as an upper or a lower bound. |
void
|
ArrayType.
setComponentType
(
Type componentType)
Sets the component type of this array type. |
void
|
QualifiedType.
setQualifier
(
Type type)
Sets the qualifier of this qualified type to the given type. |
void
|
MethodDeclaration.
setReturnType
(
Type type)
Deprecated. In the JLS3 API, this method is replaced by
MethodDeclaration.setReturnType2(Type) , which accepts null .
|
void
|
MethodDeclaration.
setReturnType2
(
Type type)
Sets the return type of the method declared in this method declaration
to the given type, exclusive of any extra array dimensions (added in JLS3 API). |
void
|
InstanceofExpression.
setRightOperand
(
Type referenceType)
Sets the right operand of this instanceof expression. |
void
|
TypeDeclaration.
setSuperclassType
(
Type superclassType)
Sets or clears the superclass declared in this type
declaration (added in JLS3 API). |
void
|
CastExpression.
setType
(
Type type)
Sets the type in this cast expression to the given type. |
void
|
FieldDeclaration.
setType
(
Type type)
Sets the base type declared in this field declaration to the given type. |
void
|
VariableDeclarationStatement.
setType
(
Type type)
Sets the base type declared in this variable declaration statement to
the given type. |
void
|
ClassInstanceCreation.
setType
(
Type type)
Sets the type instantiated in this class instance creation
expression (added in JLS3 API). |
void
|
AnnotationTypeMemberDeclaration.
setType
(
Type type)
Sets the type of the annotation type member declared in this declaration
to the given type. |
void
|
ParameterizedType.
setType
(
Type type)
Sets the type of this parameterized type. |
void
|
TypeLiteral.
setType
(
Type type)
Sets the type in this type literal expression to the given type. |
void
|
MethodRefParameter.
setType
(
Type type)
Sets the paramter type to the given type. |
void
|
VariableDeclarationExpression.
setType
(
Type type)
Sets the base type declared in this variable declaration to the given
type. |
void
|
SingleVariableDeclaration.
setType
(
Type type)
Sets the type of the variable declared in this variable declaration to
the given type, exclusive of any extra array dimensions. |