congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
UnboxingTypeConversion
Code IndexAdd Tabnine to your IDE (free)

How to use
UnboxingTypeConversion
in
brennus.model

Best Java code snippets using brennus.model.UnboxingTypeConversion (Showing top 2 results out of 315)

origin: net.ledem/brennus-asm

public void visit(UnboxingTypeConversion unboxingTypeConversion) {
 unbox(unboxingTypeConversion.getPrimitiveType(), comment);
}
public void visit(BoxingTypeConversion boxingTypeConversion) {
origin: net.ledem/brennus-builder

public TypeConversion getTypeConversion(Type from, Type to) {
 if (to.equals(from)) {
  return TypeConversion.NONE;
 }
 if (from.isPrimitive() && !to.isPrimitive()) {
  return new BoxingTypeConversion((PrimitiveType) from);
 } else if (!from.isPrimitive() && to.isPrimitive()) {
  return new UnboxingTypeConversion((PrimitiveType) to);
 } else if (!from.isPrimitive() && !to.isPrimitive()) {
  if (to.isAssignableFrom(from)) {
   return TypeConversion.NONE;
  } else {
   return new CastTypeConversion(to);
  }
 } else {
  // TODO: add cast in between primitives
  throw new UnsupportedOperationException("TODO: convert " + from + " to " + to);
 }
}
brennus.modelUnboxingTypeConversion

Most used methods

  • <init>
  • getPrimitiveType

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • String (java.lang)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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