Package | Description |
---|---|
org.eclipse.wst.jsdt.core.dom | |
org.eclipse.wst.jsdt.core.dom.rewrite |
Modifier and Type | Class and Description |
---|---|
class |
ArrayType
Type node for an array type.
|
class |
InferredType
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability.
|
class |
PrimitiveType
Primitive type nodes.
|
class |
QualifiedType
Type node for a qualified type (added in JLS3 API).
|
class |
SimpleType
Type node for a named class type, a named interface type, or a type variable.
|
Modifier and Type | Method and Description |
---|---|
Type |
ArrayType.getComponentType()
Returns the component type of this array type.
|
Type |
ArrayType.getElementType()
Returns the element type of this array type.
|
Type |
QualifiedType.getQualifier()
Returns the qualifier of this qualified type.
|
Type |
FunctionDeclaration.getReturnType()
Deprecated.
In the JLS3 API, this method is replaced by
FunctionDeclaration.getReturnType2() ,
which may return null . |
Type |
FunctionDeclaration.getReturnType2()
Returns the return type of the method declared in this method
declaration, exclusive of any extra array dimensions (added in JLS3 API).
|
Type |
InstanceofExpression.getRightOperand()
Returns the right operand of this instanceof expression.
|
Type |
TypeDeclaration.getSuperclassType()
Returns the superclass declared in this type
declaration, or
null if there is none (added in JLS3 API). |
Type |
FieldDeclaration.getType()
Returns the base type declared in this field declaration.
|
Type |
TypeLiteral.getType()
Returns the type in this type literal expression.
|
Type |
VariableDeclarationStatement.getType()
Returns the base type declared in this variable declaration statement.
|
Type |
VariableDeclarationExpression.getType()
Returns the base type declared in this variable declaration.
|
Type |
ClassInstanceCreation.getType()
Returns the type instantiated in this class instance creation
expression (added in JLS3 API).
|
Type |
SingleVariableDeclaration.getType()
Returns the type of the variable declared in this variable declaration,
exclusive of any extra array dimensions.
|
Type |
FunctionRefParameter.getType()
Returns the paramter type.
|
Modifier and Type | Method and Description |
---|---|
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.
|
QualifiedType |
AST.newQualifiedType(Type qualifier,
SimpleName name)
Creates and returns a new unparented qualified type node with
the given qualifier type and name.
|
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 |
FunctionDeclaration.setReturnType(Type type)
Deprecated.
In the JLS3 API, this method is replaced by
FunctionDeclaration.setReturnType2(Type) , which accepts null . |
void |
FunctionDeclaration.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 |
FieldDeclaration.setType(Type type)
Sets the base type declared in this field declaration to the given type.
|
void |
TypeLiteral.setType(Type type)
Sets the type in this type literal expression to the given type.
|
void |
VariableDeclarationStatement.setType(Type type)
Sets the base type declared in this variable declaration statement to
the given type.
|
void |
VariableDeclarationExpression.setType(Type type)
Sets the base type declared in this variable declaration to the given
type.
|
void |
ClassInstanceCreation.setType(Type type)
Sets the type instantiated in this class instance creation
expression (added in JLS3 API).
|
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.
|
void |
FunctionRefParameter.setType(Type type)
Sets the paramter type to the given type.
|
Modifier and Type | Method and Description |
---|---|
Type |
ImportRewrite.addImport(ITypeBinding binding,
AST ast)
Adds a new import to the rewriter's record and returns a
Type that can be used
in the code. |
Type |
ImportRewrite.addImport(ITypeBinding binding,
AST ast,
ImportRewrite.ImportRewriteContext context)
Adds a new import to the rewriter's record and returns a
Type that can be used
in the code. |
Type |
ImportRewrite.addImportFromSignature(java.lang.String typeSig,
AST ast)
Adds a new import to the rewriter's record and returns a
Type node that can be used
in the code as a reference to the type. |
Type |
ImportRewrite.addImportFromSignature(java.lang.String typeSig,
AST ast,
ImportRewrite.ImportRewriteContext context)
Adds a new import to the rewriter's record and returns a
Type node that can be used
in the code as a reference to the type. |
Copyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.