![JAR search and dependency download from the Maven repository](/logo.png)
org.fife.rsta.ac.common.VariableDeclaration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of languagesupport Show documentation
Show all versions of languagesupport Show documentation
A library adding code completion and other advanced features for Java, JavaScript, Perl, and other languages to RSyntaxTextArea.
/*
* 01/11/2010
*
* 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}.
*
* @author Robert Futrell
* @version 1.0
* @see CodeBlock
*/
public class VariableDeclaration {
private String name;
private int offset;
public VariableDeclaration(String name, int offset) {
this.name = name;
this.offset = offset;
}
public String getName() {
return name;
}
public int getOffset() {
return offset;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy