* Copyright (C) 2011 Robert Futrell
* robert_futrell at users.sourceforge.net
* http://fifesoft.com/rsyntaxtextarea
* This library is distributed under a modified BSD license. See the included
* RSTALanguageSupport.License.txt file for details.
package org.fife.rsta.ac.common;
import org.fife.rsta.ac.LanguageSupport;
* A marker for a variable declaration. This can be used by
* {@link LanguageSupport}s to mark variables, and is especially helpful
* when used in conjunction with {@link CodeBlock}.
public class VariableDeclaration {
public VariableDeclaration(String name, int offset) {
this(null, name, offset);
public VariableDeclaration(String type, String name, int offset) {
public String getName() {
* Returns the type of this variable.
* @return The variable's type, or <code>null</code> if none.
public String getType() {