| 1 11 12 package org.eclipse.jdt.core.dom; 13 14 55 public abstract class Type extends ASTNode { 56 57 65 Type(AST ast) { 66 super(ast); 67 } 68 69 76 public final boolean isPrimitiveType() { 77 return (this instanceof PrimitiveType); 78 } 79 80 87 public final boolean isSimpleType() { 88 return (this instanceof SimpleType); 89 } 90 91 98 public final boolean isArrayType() { 99 return (this instanceof ArrayType); 100 } 101 102 110 public final boolean isParameterizedType() { 111 return (this instanceof ParameterizedType); 112 } 113 114 138 public final boolean isQualifiedType() { 139 return (this instanceof QualifiedType); 140 } 141 142 154 public final boolean isWildcardType() { 155 return (this instanceof WildcardType); 156 } 157 158 168 public final ITypeBinding resolveBinding() { 169 return this.ast.getBindingResolver().resolveType(this); 170 } 171 } 172 | Popular Tags |