类 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.
    版本:
    1.0
    作者:
    Robert Futrell
    另请参阅:
    CodeBlock
    • 构造器概要

      构造器 
      构造器 说明
      VariableDeclaration​(java.lang.String name, int offset)  
      VariableDeclaration​(java.lang.String type, java.lang.String name, int offset)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.lang.String getName()  
      int getOffset()  
      java.lang.String getType()
      Returns the type of this variable.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • VariableDeclaration

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

        public VariableDeclaration​(java.lang.String type,
                                   java.lang.String name,
                                   int offset)
    • 方法详细资料

      • getName

        public java.lang.String getName()
      • getOffset

        public int getOffset()
      • getType

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