Uses of Class
org.eclipse.jdt.core.dom.Type
-
Packages that use Type Package Description org.eclipse.jdt.core.dom The Java DOM/AST is the set of classes that model the source code of a Java program as a structured document.org.eclipse.jdt.core.dom.rewrite 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.dom Modifier and Type Class Description classAnnotatableTypeAbstract base class of AST nodes that represent an annotatable type (added in JLS8 API).classArrayTypeType node for an array type.classIntersectionTypeType node for an intersection type in a cast expression (added in JLS8 API).classNameQualifiedTypeNode for a name-qualified type (added in JLS8 API).classParameterizedTypeType node for a parameterized type (added in JLS3 API).classPrimitiveTypePrimitive type nodes.classQualifiedTypeType node for a qualified type (added in JLS3 API).classSimpleTypeType node for a named class type, a named interface type, or a type variable.classUnionTypeType node for an union type (added in JLS4 API).classWildcardTypeType node for a wildcard type (added in JLS3 API).Methods in org.eclipse.jdt.core.dom that return Type Modifier and Type Method Description TypeWildcardType. getBound()Returns the bound of this wildcard type if it has one.TypeArrayType. getComponentType()Deprecated.In the JLS8 API, the recursive structure is not valid.TypeArrayType. getElementType()Returns the element type of this array type.TypeQualifiedType. getQualifier()Returns the qualifier of this qualified type.TypeMethodDeclaration. getReceiverType()Returns the receiver type explicitly declared in the method or constructor declaration (added in JLS8 API).TypeMethodDeclaration. getReturnType()Deprecated.In the JLS3 API, this method is replaced byMethodDeclaration.getReturnType2(), which may returnnull.TypeMethodDeclaration. getReturnType2()Returns the return type of the method declared in this method declaration, exclusive of any extra array dimensions (added in JLS3 API).TypeInstanceofExpression. getRightOperand()Returns the right operand of this instanceof expression.TypeTypeDeclaration. getSuperclassType()Returns the superclass declared in this type declaration, ornullif there is none (added in JLS3 API).TypeAnnotationTypeMemberDeclaration. getType()Returns the type of the annotation type member declared in this declaration.TypeCastExpression. getType()Returns the type in this cast expression.TypeClassInstanceCreation. getType()Returns the type instantiated in this class instance creation expression (added in JLS3 API).TypeCreationReference. getType()Returns the type of this creation reference expression.TypeFieldDeclaration. getType()Returns the base type declared in this field declaration.TypeMethodRefParameter. getType()Returns the paramter type.TypeParameterizedType. getType()Returns the type of this parameterized type.TypeSingleVariableDeclaration. getType()Returns the type of the variable declared in this variable declaration, exclusive of any extra array dimensions or the varargs dimension.TypeTypeLiteral. getType()Returns the type in this type literal expression.TypeTypeMethodReference. getType()Returns the type of this type method reference expression.TypeVariableDeclarationExpression. getType()Returns the base type declared in this variable declaration.TypeVariableDeclarationStatement. getType()Returns the base type declared in this variable declaration statement.Methods in org.eclipse.jdt.core.dom with parameters of type Type Modifier and Type Method Description ArrayTypeAST. 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.ArrayTypeAST. newArrayType(Type elementType, int dimensions)Creates and returns a new unparented array type node with the given element type and number of dimensions.ParameterizedTypeAST. newParameterizedType(Type type)Creates and returns a new unparented parameterized type node with the given type and an empty list of type arguments.QualifiedTypeAST. newQualifiedType(Type qualifier, SimpleName name)Creates and returns a new unparented qualified type node with the given qualifier type and name.voidWildcardType. setBound(Type type)Sets the bound of this wildcard type to the given type.voidWildcardType. 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.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.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).voidAnnotationTypeMemberDeclaration. setType(Type type)Sets the type of the annotation type member declared in this declaration to the given type.voidCastExpression. setType(Type type)Sets the type in this cast expression to the given type.voidClassInstanceCreation. setType(Type type)Sets the type instantiated in this class instance creation expression (added in JLS3 API).voidCreationReference. setType(Type type)Sets the type of this creation reference expression.voidFieldDeclaration. setType(Type type)Sets the base type declared in this field declaration to the given type.voidMethodRefParameter. setType(Type type)Sets the paramter type to the given type.voidParameterizedType. setType(Type type)Sets the type of this parameterized type.voidSingleVariableDeclaration. setType(Type type)Sets the type of the variable declared in this variable declaration to the given type, exclusive of any extra array dimensions.voidTypeLiteral. setType(Type type)Sets the type in this type literal expression to the given type.voidTypeMethodReference. setType(Type type)Sets the type of this type method reference expression.voidVariableDeclarationExpression. setType(Type type)Sets the base type declared in this variable declaration to the given type.voidVariableDeclarationStatement. setType(Type type)Sets 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 Type Modifier and Type Method Description TypeImportRewrite. addImport(ITypeBinding binding, AST ast)Adds a new import to the rewriter's record and returns aTypethat can be used in the code.TypeImportRewrite. 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.TypeImportRewrite. 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.TypeImportRewrite. 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.TypeImportRewrite. 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.
-