Package org.eclipse.cdt.core.parser
Class OffsetLimitReachedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.cdt.core.parser.EndOfFileException
org.eclipse.cdt.core.parser.OffsetLimitReachedException
- All Implemented Interfaces:
Serializable
The exception is thrown, when content-assist is requested within a context that is handled
by the lexer or the preprocessor.
ORIGIN_LEXER
: char-literal, string-literal, number-literal, header-name.
ORIGIN_PREPROCESSOR_DIRECTIVE
: preprocessor-directive.
ORIGIN_INACTIVE_CODE
: within an inactive branch of conditional compilation.
ORIGIN_MACRO_EXPANSION
: within a macro-expansion.
- See Also:
- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns one of ORIGIN_...Methods inherited from class org.eclipse.cdt.core.parser.EndOfFileException
endsInactiveCode, getEndOffset
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ORIGIN_UNKNOWN
public static final int ORIGIN_UNKNOWN- See Also:
-
ORIGIN_LEXER
public static final int ORIGIN_LEXER- See Also:
-
ORIGIN_PREPROCESSOR_DIRECTIVE
public static final int ORIGIN_PREPROCESSOR_DIRECTIVE- See Also:
-
ORIGIN_INACTIVE_CODE
public static final int ORIGIN_INACTIVE_CODE- See Also:
-
ORIGIN_MACRO_EXPANSION
public static final int ORIGIN_MACRO_EXPANSION- See Also:
-
-
Constructor Details
-
OffsetLimitReachedException
-
-
Method Details
-
getOriginator
public int getOriginator()Returns one of ORIGIN_... -
getFinalToken
- Returns:
- Returns the finalToken.
-