com.aptana.ide.lexer
Interface IRange

All Known Subinterfaces:
IObject, IParseNode, IScope
All Known Implementing Classes:
CSSCharSetNode, CSSDeclarationNode, CSSExprNode, CSSImportNode, CSSListNode, CSSMediaNode, CSSMediumNode, CSSPageNode, CSSParseNode, CSSRuleSetNode, CSSSelectorNode, CSSSimpleSelectorNode, CSSTermNode, CSSTextNode, DocumentationNode, FunctionBase, GenericCommentNode, HTMLDeclarationNode, HTMLDocumentNode, HTMLElementNode, HTMLParseNode, HTMLSpecialNode, JSArray, JSArrayConstructor, JSBinaryOperatorAssignNode, JSBinaryOperatorNode, JSBoolean, JSBooleanConstructor, JSDate, JSDateConstructor, JSError, JSErrorConstructor, JSFunction, JSFunctionConstructor, JSFunctionNode, JSGuessedObject, JSLabelNode, JSLogicalBinaryOperatorNode, JSNaryAndExpressionNode, JSNaryNode, JSNull, JSNumber, JSNumberConstructor, JSNumericalBinaryOperatorNode, JSNumericalUnaryOperatorNode, JSObject, JSObjectConstructor, JSParseNode, JSPrimitiveNode, JSRegExp, JSRegExpConstructor, JSScope, JSString, JSStringConstructor, JSStringNode, JSTextNode, JSUnaryOperatorNode, JSUndefined, JSVarNode, Lexeme, NativeConstructorBase, NativeMath, ObjectBase, ParseFragment, ParseNodeBase, ParseRootNode, Range, ScriptDocAliasNode, ScriptDocAuthorNode, ScriptDocClassDescriptionNode, ScriptDocConstructorNode, ScriptDocDeprecatedNode, ScriptDocDescriptionNode, ScriptDocExceptionNode, ScriptDocIdNode, ScriptDocKindNode, ScriptDocMemberOfNode, ScriptDocMethodNode, ScriptDocParamNode, ScriptDocParseNode, ScriptDocParseNode, ScriptDocProjectDescriptionNode, ScriptDocReturnNode, ScriptDocSdocNode, ScriptDocSeeNode, ScriptDocSinceNode, ScriptDocTypeNode, ScriptDocVersionNode, UserNode, XMLDeclarationNode, XMLDocumentNode, XMLElementNode, XMLParseNode

public interface IRange

Author:
Kevin Lindsey

Method Summary
 boolean containsOffset(int offset)
          Determine if the specified offset is within this range
 int getEndingOffset()
          Get the ending offset for this range
 int getLength()
          Get the total length between the starting offset and the ending offset in this range
 int getStartingOffset()
          Get the starting offset for this range
 boolean isEmpty()
          Determine if this is a valid range
 

Method Detail

getEndingOffset

int getEndingOffset()
Get the ending offset for this range

Returns:
Returns the ending offset for this range

getLength

int getLength()
Get the total length between the starting offset and the ending offset in this range

Returns:
Returns the length of this range

getStartingOffset

int getStartingOffset()
Get the starting offset for this range

Returns:
Returns the starting offset for this range

isEmpty

boolean isEmpty()
Determine if this is a valid range

Returns:
Returns true if this range is empty

containsOffset

boolean containsOffset(int offset)
Determine if the specified offset is within this range

Parameters:
offset - The offset to test
Returns:
Returns true if the offset is within this range