Class VariableDeclaration


  • public class VariableDeclaration
    extends java.lang.Object
    A marker for a variable declaration. This can be used by LanguageSupports to mark variables, and is especially helpful when used in conjunction with CodeBlock.
    Version:
    1.0
    See Also:
    CodeBlock
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
      private int offset  
      private java.lang.String type  
    • Constructor Summary

      Constructors 
      Constructor Description
      VariableDeclaration​(java.lang.String name, int offset)  
      VariableDeclaration​(java.lang.String type, java.lang.String name, int offset)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      int getOffset()  
      java.lang.String getType()
      Returns the type of this variable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • type

        private java.lang.String type
      • name

        private java.lang.String name
      • offset

        private int offset
    • Constructor Detail

      • VariableDeclaration

        public VariableDeclaration​(java.lang.String name,
                                   int offset)
      • VariableDeclaration

        public VariableDeclaration​(java.lang.String type,
                                   java.lang.String name,
                                   int offset)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getOffset

        public int getOffset()
      • getType

        public java.lang.String getType()
        Returns the type of this variable.
        Returns:
        The variable's type, or null if none.