Uses of Class
org.eclipse.jdt.core.dom.Type
Packages that use Type
Package
Description
The Java DOM/AST is the set of classes that model the source code of a Java program
as a structured document.
The Java DOM/AST rewrite is the set of classes that are used to make changes to an existing DOM/AST tree.
-
Uses of Type in org.eclipse.jdt.core.dom
Subclasses of Type in org.eclipse.jdt.core.domModifier and TypeClassDescriptionclassAbstract base class of AST nodes that represent an annotatable type (added in JLS8 API).classType node for an array type.classType node for an intersection type in a cast expression (added in JLS8 API).classNode for a name-qualified type (added in JLS8 API).classType node for a parameterized type (added in JLS3 API).classPrimitive type nodes.classType node for a qualified type (added in JLS3 API).classType node for a named class type, a named interface type, or a type variable.classType node for an union type (added in JLS4 API).classType node for a wildcard type (added in JLS3 API).Methods in org.eclipse.jdt.core.dom that return TypeModifier and TypeMethodDescriptionWildcardType.getBound()Returns the bound of this wildcard type if it has one.ArrayType.getComponentType()Deprecated.In the JLS8 API, the recursive structure is not valid.ArrayType.getElementType()Returns the element type of this array type.RecordPattern.getPatternType()Returns the pattern type of Types Pattern.QualifiedType.getQualifier()Returns the qualifier of this qualified type.MethodDeclaration.getReceiverType()Returns the receiver type explicitly declared in the method or constructor declaration (added in JLS8 API).MethodDeclaration.getReturnType()Deprecated.In the JLS3 API, this method is replaced byMethodDeclaration.getReturnType2(), which may returnnull.MethodDeclaration.getReturnType2()Returns the return type of the method declared in this method declaration, exclusive of any extra array dimensions (added in JLS3 API).InstanceofExpression.getRightOperand()Returns the right operand of this instanceof expression.TypeDeclaration.getSuperclassType()Returns the superclass declared in this type declaration, ornullif there is none (added in JLS3 API).AnnotationTypeMemberDeclaration.getType()Returns the type of the annotation type member declared in this declaration.CastExpression.getType()Returns the type in this cast expression.ClassInstanceCreation.getType()Returns the type instantiated in this class instance creation expression (added in JLS3 API).CreationReference.getType()Returns the type of this creation reference expression.FieldDeclaration.getType()Returns the base type declared in this field declaration.MethodRefParameter.getType()Returns the paramter type.ParameterizedType.getType()Returns the type of this parameterized type.SingleVariableDeclaration.getType()Returns the type of the variable declared in this variable declaration, exclusive of any extra array dimensions or the varargs dimension.TypeLiteral.getType()Returns the type in this type literal expression.TypeMethodReference.getType()Returns the type of this type method reference expression.VariableDeclarationExpression.getType()Returns the base type declared in this variable declaration.VariableDeclarationStatement.getType()Returns the base type declared in this variable declaration statement.Methods in org.eclipse.jdt.core.dom with parameters of type TypeModifier and TypeMethodDescriptionAST.newArrayType(Type elementType) Creates and returns a new unparented array type node with the given element type, which cannot be an array type for API levels JLS8 and later.AST.newArrayType(Type elementType, int dimensions) Creates and returns a new unparented array type node with the given element type and number of dimensions.AST.newParameterizedType(Type type) Creates and returns a new unparented parameterized type node with the given type and an empty list of type arguments.AST.newQualifiedType(Type qualifier, SimpleName name) Creates and returns a new unparented qualified type node with the given qualifier type and name.voidSets the bound of this wildcard type to the given type.voidSets the bound of this wildcard type to the given type and marks it as an upper or a lower bound.voidArrayType.setComponentType(Type componentType) Deprecated.In the JLS8 API, the recursive structure is not valid.voidArrayType.setElementType(Type type) Sets the element type of the array.voidRecordPattern.setPatternType(Type patternType) Sets the pattern type.voidQualifiedType.setQualifier(Type type) Sets the qualifier of this qualified type to the given type.voidMethodDeclaration.setReceiverType(Type receiverType) Sets or clears the given type as the type of explicit receiver parameter (added in JLS8 API).voidMethodDeclaration.setReturnType(Type type) Deprecated.In the JLS3 API, this method is replaced byMethodDeclaration.setReturnType2(Type), which acceptsnull.voidMethodDeclaration.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).voidInstanceofExpression.setRightOperand(Type referenceType) Sets the right operand of this instanceof expression.voidTypeDeclaration.setSuperclassType(Type superclassType) Sets or clears the superclass declared in this type declaration (added in JLS3 API).voidSets the type of the annotation type member declared in this declaration to the given type.voidSets the type in this cast expression to the given type.voidSets the type instantiated in this class instance creation expression (added in JLS3 API).voidSets the type of this creation reference expression.voidSets the base type declared in this field declaration to the given type.voidSets the paramter type to the given type.voidSets the type of this parameterized type.voidSets the type of the variable declared in this variable declaration to the given type, exclusive of any extra array dimensions.voidSets the type in this type literal expression to the given type.voidSets the type of this type method reference expression.voidSets the base type declared in this variable declaration to the given type.voidSets the base type declared in this variable declaration statement to the given type. -
Uses of Type in org.eclipse.jdt.core.dom.rewrite
Methods in org.eclipse.jdt.core.dom.rewrite that return TypeModifier and TypeMethodDescriptionImportRewrite.addImport(ITypeBinding binding, AST ast) Adds a new import to the rewriter's record and returns aTypethat can be used in the code.ImportRewrite.addImport(ITypeBinding binding, AST ast, ImportRewrite.ImportRewriteContext context) Adds a new import to the rewriter's record and returns aTypethat can be used in the code.ImportRewrite.addImport(ITypeBinding binding, AST ast, ImportRewrite.ImportRewriteContext context, ImportRewrite.TypeLocation location) Adds a new import to the rewriter's record and returns aTypethat can be used in the code.ImportRewrite.addImportFromSignature(String typeSig, AST ast) Adds a new import to the rewriter's record and returns aTypenode that can be used in the code as a reference to the type.ImportRewrite.addImportFromSignature(String typeSig, AST ast, ImportRewrite.ImportRewriteContext context) Adds a new import to the rewriter's record and returns aTypenode that can be used in the code as a reference to the type.