Available Methods
- getParent ( )
- accept ( )
- getNodeType ( )
- getStartPosition ( )
- getLength ( )
- getLocationInParent ( )
- METHOD_DECLARATION
- METHOD_INVOCATION
- getAST ( )
- getRoot ( )
- FIELD_DECLARATION
- SINGLE_VARIABLE_DECLARATION
- QUALIFIED_NAME
- copySubtree ( )
- IMPORT_DECLARATION
- CLASS_INSTANCE_CREATION
- TYPE_DECLARATION
- equals ( )
- ENUM_CONSTANT_DECLARATION
- SUPER_FIELD_ACCESS
- EXPRESSION_STATEMENT
- ANNOTATION_TYPE_MEMBER_DECLARATION
- SUPER_METHOD_INVOCATION
- NUMBER_LITERAL
- getStructuralProperty ( )
- BLOCK
- FIELD_ACCESS
- SIMPLE_TYPE
- ASSIGNMENT
- VARIABLE_DECLARATION_STATEMENT
- SIMPLE_NAME
- ENUM_DECLARATION
- FOR_STATEMENT
- MALFORMED
- ENHANCED_FOR_STATEMENT
- INITIALIZER
- PREFIX_EXPRESSION
- CHARACTER_LITERAL
- getProperty ( )
- BOOLEAN_LITERAL
- CONSTRUCTOR_INVOCATION
- QUALIFIED_TYPE
- setProperty ( )
- WHILE_STATEMENT
- ANNOTATION_TYPE_DECLARATION
- WILDCARD_TYPE
- ANONYMOUS_CLASS_DECLARATION
- NULL_LITERAL
- SUPER_CONSTRUCTOR_INVOCATION
- COMPILATION_UNIT
- POSTFIX_EXPRESSION
- getFlags ( )
- VARIABLE_DECLARATION_FRAGMENT
- SINGLE_MEMBER_ANNOTATION
- TAG_ELEMENT
- INSTANCEOF_EXPRESSION
- ARRAY_INITIALIZER
- JAVADOC
- toString ( )
- CAST_EXPRESSION
- CONDITIONAL_EXPRESSION
- PARAMETERIZED_TYPE
- PACKAGE_DECLARATION
- LABELED_STATEMENT
- VARIABLE_DECLARATION_EXPRESSION
- setStructuralProperty ( )
- SWITCH_STATEMENT
- MARKER_ANNOTATION
Related Classes
- java.util.Iterator
- org.eclipse.swt.graphics.Image
- org.eclipse.core.runtime.CoreException
- org.eclipse.core.runtime.Assert
- org.eclipse.jdt.core.dom.CompilationUnit
- org.eclipse.jdt.core.dom.MethodDeclaration
- org.eclipse.jdt.core.dom.AST
- org.eclipse.jdt.core.JavaModelException
- org.eclipse.jdt.core.ICompilationUnit
- org.eclipse.jdt.core.dom.SimpleName
- org.eclipse.jdt.core.dom.FieldDeclaration
- org.eclipse.jdt.core.dom.SingleVariableDeclaration
- org.eclipse.jdt.core.dom.MethodInvocation
- org.eclipse.jdt.core.dom.TypeDeclaration
- org.eclipse.jdt.core.dom.VariableDeclarationFragment
- org.eclipse.jdt.core.dom.Expression
- org.eclipse.jdt.core.IType
- org.eclipse.jdt.core.dom.Type
- org.eclipse.jdt.core.dom.VariableDeclarationStatement
- org.eclipse.jdt.core.dom.Modifier
- org.eclipse.jdt.core.dom.ITypeBinding
- org.eclipse.jdt.core.dom.ClassInstanceCreation
- org.eclipse.jdt.core.dom.Block
- org.eclipse.jdt.core.dom.Name
- org.eclipse.jdt.core.dom.QualifiedName
Java Code Examples for org.eclipse.jdt.core.dom.ASTNode#WILDCARD_TYPE
The following examples show how to use
org.eclipse.jdt.core.dom.ASTNode#WILDCARD_TYPE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Util.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
private static void getFullyQualifiedName(Type type, StringBuffer buffer) { switch (type.getNodeType()) { case ASTNode.ARRAY_TYPE: ArrayType arrayType = (ArrayType) type; getFullyQualifiedName(arrayType.getElementType(), buffer); for (int i = 0, length = arrayType.getDimensions(); i < length; i++) { buffer.append('['); buffer.append(']'); } break; case ASTNode.PARAMETERIZED_TYPE: ParameterizedType parameterizedType = (ParameterizedType) type; getFullyQualifiedName(parameterizedType.getType(), buffer); buffer.append('<'); Iterator iterator = parameterizedType.typeArguments().iterator(); boolean isFirst = true; while (iterator.hasNext()) { if (!isFirst) buffer.append(','); else isFirst = false; Type typeArgument = (Type) iterator.next(); getFullyQualifiedName(typeArgument, buffer); } buffer.append('>'); break; case ASTNode.PRIMITIVE_TYPE: buffer.append(((PrimitiveType) type).getPrimitiveTypeCode().toString()); break; case ASTNode.QUALIFIED_TYPE: buffer.append(((QualifiedType) type).getName().getFullyQualifiedName()); break; case ASTNode.SIMPLE_TYPE: buffer.append(((SimpleType) type).getName().getFullyQualifiedName()); break; case ASTNode.WILDCARD_TYPE: buffer.append('?'); WildcardType wildcardType = (WildcardType) type; Type bound = wildcardType.getBound(); if (bound == null) return; if (wildcardType.isUpperBound()) { buffer.append(" extends "); //$NON-NLS-1$ } else { buffer.append(" super "); //$NON-NLS-1$ } getFullyQualifiedName(bound, buffer); break; } }