< prev index next >

src/java.compiler/share/classes/javax/lang/model/type/TypeMirror.java

Print this page




 121     boolean equals(Object obj);
 122 
 123     /**
 124      * Obeys the general contract of {@link Object#hashCode Object.hashCode}.
 125      *
 126      * @see #equals
 127      */
 128     int hashCode();
 129 
 130     /**
 131      * Returns an informative string representation of this type.  If
 132      * possible, the string should be of a form suitable for
 133      * representing this type in source code.  Any names embedded in
 134      * the result are qualified if possible.
 135      *
 136      * @return a string representation of this type
 137      */
 138     String toString();
 139 
 140     /**

































 141      * Applies a visitor to this type.
 142      *
 143      * @param <R> the return type of the visitor's methods
 144      * @param <P> the type of the additional parameter to the visitor's methods
 145      * @param v   the visitor operating on this type
 146      * @param p   additional parameter to the visitor
 147      * @return a visitor-specified result
 148      */
 149     <R, P> R accept(TypeVisitor<R, P> v, P p);
 150 }


 121     boolean equals(Object obj);
 122 
 123     /**
 124      * Obeys the general contract of {@link Object#hashCode Object.hashCode}.
 125      *
 126      * @see #equals
 127      */
 128     int hashCode();
 129 
 130     /**
 131      * Returns an informative string representation of this type.  If
 132      * possible, the string should be of a form suitable for
 133      * representing this type in source code.  Any names embedded in
 134      * the result are qualified if possible.
 135      *
 136      * @return a string representation of this type
 137      */
 138     String toString();
 139 
 140     /**
 141      * {@inheritDoc}
 142      *
 143      * <p>Note that any annotations returned by this method are type
 144      * annotations.
 145      *
 146      * @since 8
 147      */
 148     @Override
 149     List<? extends AnnotationMirror> getAnnotationMirrors();
 150 
 151     /**
 152      * {@inheritDoc}
 153      *
 154      * <p>Note that any annotation returned by this method is a type
 155      * annotation.
 156      *
 157      * @since 8
 158      */
 159     @Override
 160     <A extends Annotation> A getAnnotation(Class<A> annotationType);
 161 
 162     /**
 163      * {@inheritDoc}
 164      *
 165      * <p>Note that any annotations returned by this method are type
 166      * annotations.
 167      *
 168      * @since 8
 169      */
 170     @Override
 171     <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType);
 172 
 173     /**
 174      * Applies a visitor to this type.
 175      *
 176      * @param <R> the return type of the visitor's methods
 177      * @param <P> the type of the additional parameter to the visitor's methods
 178      * @param v   the visitor operating on this type
 179      * @param p   additional parameter to the visitor
 180      * @return a visitor-specified result
 181      */
 182     <R, P> R accept(TypeVisitor<R, P> v, P p);
 183 }
< prev index next >