Class ULiteral

java.lang.Object
com.sun.source.util.SimpleTreeVisitor<Choice<Unifier>,Unifier>
com.google.errorprone.refaster.UTree<com.sun.tools.javac.tree.JCTree.JCExpression>
com.google.errorprone.refaster.UExpression
com.google.errorprone.refaster.ULiteral
All Implemented Interfaces:
Unifiable<com.sun.source.tree.Tree>, com.sun.source.tree.ExpressionTree, com.sun.source.tree.LiteralTree, com.sun.source.tree.Tree, com.sun.source.tree.TreeVisitor<Choice<Unifier>,Unifier>, Serializable

public abstract class ULiteral extends UExpression implements com.sun.source.tree.LiteralTree
UTree version of LiteralTree.
Author:
lowasser@google.com (Louis Wasserman)
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.sun.source.tree.Tree

    com.sun.source.tree.Tree.Kind
  • Field Summary

    Fields inherited from class com.sun.source.util.SimpleTreeVisitor

    DEFAULT_VALUE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <R, D> R
    accept(com.sun.source.tree.TreeVisitor<R,D> visitor, D data)
     
    static ULiteral
    booleanLit(boolean value)
     
    static ULiteral
    charLit(char value)
     
    static ULiteral
    create(com.sun.source.tree.Tree.Kind kind, Object value)
     
    static ULiteral
    doubleLit(double value)
     
    static ULiteral
    floatLit(float value)
     
    abstract com.sun.source.tree.Tree.Kind
     
    abstract @Nullable Object
     
    com.sun.tools.javac.tree.JCTree.JCLiteral
    inline(Inliner inliner)
     
    static ULiteral
    intLit(int value)
     
    static ULiteral
    longLit(long value)
     
     
    static ULiteral
     
    static ULiteral
     
    visitLiteral(com.sun.source.tree.LiteralTree literal, Unifier unifier)
     

    Methods inherited from class com.google.errorprone.refaster.UTree

    defaultAction, unify

    Methods inherited from class com.sun.source.util.SimpleTreeVisitor

    visit, visit, visitAnnotatedType, visitAnnotation, visitAnyPattern, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBindingPattern, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitConstantCaseLabel, visitContinue, visitDeconstructionPattern, visitDefaultCaseLabel, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExports, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitMemberReference, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitModule, visitNewArray, visitNewClass, visitOpens, visitOther, visitPackage, visitParameterizedType, visitParenthesized, visitPatternCaseLabel, visitPrimitiveType, visitProvides, visitRequires, visitReturn, visitSwitch, visitSwitchExpression, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitUses, visitVariable, visitWhileLoop, visitWildcard, visitYield

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ULiteral

      public ULiteral()
  • Method Details

    • nullLit

      public static ULiteral nullLit()
    • intLit

      public static ULiteral intLit(int value)
    • longLit

      public static ULiteral longLit(long value)
    • floatLit

      public static ULiteral floatLit(float value)
    • doubleLit

      public static ULiteral doubleLit(double value)
    • booleanLit

      public static ULiteral booleanLit(boolean value)
    • charLit

      public static ULiteral charLit(char value)
    • stringLit

      public static ULiteral stringLit(String value)
    • create

      public static ULiteral create(com.sun.source.tree.Tree.Kind kind, Object value)
    • getKind

      public abstract com.sun.source.tree.Tree.Kind getKind()
      Specified by:
      getKind in interface com.sun.source.tree.Tree
    • getValue

      public abstract @Nullable Object getValue()
      Specified by:
      getValue in interface com.sun.source.tree.LiteralTree
    • visitLiteral

      public Choice<Unifier> visitLiteral(com.sun.source.tree.LiteralTree literal, Unifier unifier)
      Specified by:
      visitLiteral in interface com.sun.source.tree.TreeVisitor<Choice<Unifier>,Unifier>
      Overrides:
      visitLiteral in class com.sun.source.util.SimpleTreeVisitor<Choice<Unifier>,Unifier>
    • accept

      public <R, D> R accept(com.sun.source.tree.TreeVisitor<R,D> visitor, D data)
      Specified by:
      accept in interface com.sun.source.tree.Tree
    • inline

      public com.sun.tools.javac.tree.JCTree.JCLiteral inline(Inliner inliner)
    • negate

      public UExpression negate()
      Overrides:
      negate in class UExpression