Tabnine Logo
AbstractTypeVisitor6
Code IndexAdd Tabnine to your IDE (free)

How to use
AbstractTypeVisitor6
in
javax.lang.model.util

Best Java code snippets using javax.lang.model.util.AbstractTypeVisitor6 (Showing top 8 results out of 315)

origin: yongjhih/RetroFacebook

/**
 * Returns true if casting to the given type will elicit an unchecked warning from the
 * compiler. Only generic types such as {@code List<String>} produce such warnings. There will be
 * no warning if the type's only generic parameters are simple wildcards, as in {@code Map<?, ?>}.
 */
static boolean isCastingUnchecked(TypeMirror type) {
 return CASTING_UNCHECKED_VISITOR.visit(type, false);
}
origin: org.kohsuke.sorcerer/sorcerer-javac

/**
 * Visits an {@code IntersectionType} element by calling {@code
 * visitUnknown}.
 * @param t  {@inheritDoc}
 * @param p  {@inheritDoc}
 * @return the result of {@code visitUnknown}
 *
 * @since 1.8
 */
public R visitIntersection(IntersectionType t, P p) {
  return visitUnknown(t, p);
}
origin: yongjhih/RetroFacebook

/**
 * Returns true if casting to the given type will elicit an unchecked warning from the
 * compiler. Only generic types such as {@code List<String>} produce such warnings. There will be
 * no warning if the type's only generic parameters are simple wildcards, as in {@code Map<?, ?>}.
 */
static boolean isCastingUnchecked(TypeMirror type) {
 return CASTING_UNCHECKED_VISITOR.visit(type, false);
}
origin: org.kohsuke.sorcerer/sorcerer-javac

/**
 * Visits a {@code UnionType} element by calling {@code
 * visitUnknown}.
 * @param t  {@inheritDoc}
 * @param p  {@inheritDoc}
 * @return the result of {@code visitUnknown}
 *
 * @since 1.7
 */
public R visitUnion(UnionType t, P p) {
  return visitUnknown(t, p);
}
origin: yongjhih/AutoJson

/**
 * Returns true if casting to the given type will elicit an unchecked warning from the
 * compiler. Only generic types such as {@code List<String>} produce such warnings. There will be
 * no warning if the type's only generic parameters are simple wildcards, as in {@code Map<?, ?>}.
 */
static boolean isCastingUnchecked(TypeMirror type) {
 return CASTING_UNCHECKED_VISITOR.visit(type, false);
}
origin: konsoletyper/teavm-javac

/**
 * Visits a {@code UnionType} element by calling {@code
 * visitUnknown}.
 * @param t  {@inheritDoc}
 * @param p  {@inheritDoc}
 * @return the result of {@code visitUnknown}
 *
 * @since 1.7
 */
public R visitUnion(UnionType t, P p) {
  return visitUnknown(t, p);
}
origin: 8tory/SimpleWeibo

/**
 * Returns true if casting to the given type will elicit an unchecked warning from the
 * compiler. Only generic types such as {@code List<String>} produce such warnings. There will be
 * no warning if the type's only generic parameters are simple wildcards, as in {@code Map<?, ?>}.
 */
static boolean isCastingUnchecked(TypeMirror type) {
 return CASTING_UNCHECKED_VISITOR.visit(type, false);
}
origin: konsoletyper/teavm-javac

/**
 * Visits an {@code IntersectionType} element by calling {@code
 * visitUnknown}.
 * @param t  {@inheritDoc}
 * @param p  {@inheritDoc}
 * @return the result of {@code visitUnknown}
 *
 * @since 1.8
 */
public R visitIntersection(IntersectionType t, P p) {
  return visitUnknown(t, p);
}
javax.lang.model.utilAbstractTypeVisitor6

Javadoc

A skeletal visitor of types with default behavior appropriate for the javax.lang.model.SourceVersion#RELEASE_6source version.

WARNING: The TypeVisitor interface implemented by this class may have methods added to it in the future to accommodate new, currently unknown, language structures added to future versions of the Java™ programming language. Therefore, methods whose names begin with "visit" may be added to this class in the future; to avoid incompatibilities, classes which extend this class should not declare any instance methods with names beginning with "visit".

When such a new visit method is added, the default implementation in this class will be to call the #visitUnknown method. A new abstract type visitor class will also be introduced to correspond to the new language level; this visitor will have different default behavior for the visit method in question. When the new visitor is introduced, all or portions of this visitor may be deprecated.

Note that adding a default implementation of a new visit method in a visitor class will occur instead of adding a default method directly in the visitor interface since a Java SE 8 language feature cannot be used to this version of the API since this version is required to be runnable on Java SE 7 implementations. Future versions of the API that are only required to run on Java SE 8 and later may take advantage of default methods in this situation.

Most used methods

  • visit
    Visits any type mirror as if by passing itself to that type mirror's TypeMirror#accept method. The i
  • visitUnknown
    The default implementation of this method in AbstractTypeVisitor6 will always throw UnknownTypeExce

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Menu (java.awt)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • JPanel (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now