Class VariableSnippet

java.lang.Object
com.karuslabs.utilitary.snippet.Snippet
com.karuslabs.utilitary.snippet.VariableSnippet
All Implemented Interfaces:
CharSequence

public class VariableSnippet extends Snippet
A code snippet that represents a VariableElement.
  • Field Details

    • annotations

      public final AnnotationsSnippet annotations
      The annotations.
    • modifiers

      public final Part<Modifier,Line> modifiers
      The modifiers.
    • type

      public final Line type
      The type.
    • name

      public final Line name
      The name.
  • Method Details

    • of

      public static VariableSnippet of(VariableElement element, int column)
      Creates a VariableSnippet with the given VariableElement.
      Parameters:
      element - the variable
      column - the column
      Returns:
      a VariableSnippet