Skip navigation links
A B C D E F G H I J L M N O P R S T V W X 

A

addFeature(Feature) - Method in class org.anarres.cpp.Preprocessor
Adds a feature to the feature-set of this Preprocessor.
addFeatures(Collection<Feature>) - Method in class org.anarres.cpp.Preprocessor
Adds features to the feature-set of this Preprocessor.
addFeatures(Feature...) - Method in class org.anarres.cpp.Preprocessor
Adds features to the feature-set of this Preprocessor.
addInput(Source) - Method in class org.anarres.cpp.Preprocessor
Adds input for the Preprocessor.
addInput(File) - Method in class org.anarres.cpp.Preprocessor
Adds input for the Preprocessor.
addLocalincludepath(Path) - Method in class org.anarres.cpp.CppTask
 
addMacro(String) - Method in class org.anarres.cpp.CppReader
Defines the given name as a macro.
addMacro(String, String) - Method in class org.anarres.cpp.CppReader
Defines the given name as a macro.
addMacro(CppTask.Macro) - Method in class org.anarres.cpp.CppTask
 
addMacro(Macro) - Method in class org.anarres.cpp.Preprocessor
Adds a Macro to this Preprocessor.
addMacro(String, String) - Method in class org.anarres.cpp.Preprocessor
Defines the given name as a macro.
addMacro(String) - Method in class org.anarres.cpp.Preprocessor
Defines the given name as a macro, with the value 1.
addPaste(Token) - Method in class org.anarres.cpp.Macro
Adds a "paste" operator to the expansion of this macro.
addSystemincludepath(Path) - Method in class org.anarres.cpp.CppTask
 
addToken(Token) - Method in class org.anarres.cpp.Macro
Adds a token to the expansion of this macro.
addWarning(Warning) - Method in class org.anarres.cpp.Preprocessor
Adds a warning to the warning-set of this Preprocessor.
addWarnings(Collection<Warning>) - Method in class org.anarres.cpp.Preprocessor
Adds warnings to the warning-set of this Preprocessor.
AND_EQ - Static variable in class org.anarres.cpp.Token
 
ARROW - Static variable in class org.anarres.cpp.Token
 
asMap() - Method in class org.anarres.cpp.BuildMetadata
 

B

BuildMetadata - Class in org.anarres.cpp
Returns information about the build.

C

CCOMMENT - Static variable in class org.anarres.cpp.Token
 
CHARACTER - Static variable in class org.anarres.cpp.Token
 
ChrootFileSystem - Class in org.anarres.cpp
A virtual filesystem implementation using java.io in a virtual chroot.
ChrootFileSystem(File) - Constructor for class org.anarres.cpp.ChrootFileSystem
 
clear() - Method in class org.anarres.cpp.DefaultPreprocessorListener
 
close() - Method in class org.anarres.cpp.CppReader
 
close() - Method in class org.anarres.cpp.LexerSource
 
close() - Method in class org.anarres.cpp.Preprocessor
 
close() - Method in class org.anarres.cpp.Source
 
CPPCOMMENT - Static variable in class org.anarres.cpp.Token
 
CppReader - Class in org.anarres.cpp
A Reader wrapper around the Preprocessor.
CppReader(Reader) - Constructor for class org.anarres.cpp.CppReader
 
CppReader(Preprocessor) - Constructor for class org.anarres.cpp.CppReader
 
CppTask - Class in org.anarres.cpp
An ant task for jcpp.
CppTask() - Constructor for class org.anarres.cpp.CppTask
 
CppTask.Macro - Class in org.anarres.cpp
 

D

DEC - Static variable in class org.anarres.cpp.Token
 
DefaultPreprocessorListener - Class in org.anarres.cpp
A handler for preprocessor events, primarily errors and warnings.
DefaultPreprocessorListener() - Constructor for class org.anarres.cpp.DefaultPreprocessorListener
 
DIV_EQ - Static variable in class org.anarres.cpp.Token
 
doFileOperations() - Method in class org.anarres.cpp.CppTask
 
doubleValue() - Method in class org.anarres.cpp.NumericValue
 

E

ELLIPSIS - Static variable in class org.anarres.cpp.Token
 
EOF - Static variable in class org.anarres.cpp.Token
 
EQ - Static variable in class org.anarres.cpp.Token
 
error(int, int, String) - Method in class org.anarres.cpp.Preprocessor
Handles an error.
error(Token, String) - Method in class org.anarres.cpp.Preprocessor
Handles an error.
error(int, int, String) - Method in class org.anarres.cpp.Source
 

F

F_DOUBLE - Static variable in class org.anarres.cpp.NumericValue
 
F_FLOAT - Static variable in class org.anarres.cpp.NumericValue
 
F_INT - Static variable in class org.anarres.cpp.NumericValue
 
F_LONG - Static variable in class org.anarres.cpp.NumericValue
 
F_LONGLONG - Static variable in class org.anarres.cpp.NumericValue
 
F_UNSIGNED - Static variable in class org.anarres.cpp.NumericValue
 
Feature - Enum in org.anarres.cpp
Features of the Preprocessor, which may be enabled or disabled.
FF_SIZE - Static variable in class org.anarres.cpp.NumericValue
 
FileLexerSource - Class in org.anarres.cpp
A Source which lexes a file.
FileLexerSource(File, Charset, String) - Constructor for class org.anarres.cpp.FileLexerSource
Creates a new Source for lexing the given File.
FileLexerSource(File, String) - Constructor for class org.anarres.cpp.FileLexerSource
 
FileLexerSource(File, Charset) - Constructor for class org.anarres.cpp.FileLexerSource
 
FileLexerSource(File) - Constructor for class org.anarres.cpp.FileLexerSource
Deprecated.
FileLexerSource(String, Charset) - Constructor for class org.anarres.cpp.FileLexerSource
 
FileLexerSource(String) - Constructor for class org.anarres.cpp.FileLexerSource
Deprecated.
floatValue() - Method in class org.anarres.cpp.NumericValue
 
forText(String) - Static method in enum org.anarres.cpp.PreprocessorCommand
 

G

GE - Static variable in class org.anarres.cpp.Token
 
getArgs() - Method in class org.anarres.cpp.Macro
Returns the number of arguments to this macro.
getBase() - Method in class org.anarres.cpp.NumericValue
 
getBuildDate() - Method in class org.anarres.cpp.BuildMetadata
 
getChangeId() - Method in class org.anarres.cpp.BuildMetadata
 
getChildFile(String) - Method in interface org.anarres.cpp.VirtualFile
 
getColumn() - Method in class org.anarres.cpp.LexerSource
Returns the column number of the last read character in this source.
getColumn() - Method in class org.anarres.cpp.Source
Returns the current column number within this Source.
getColumn() - Method in class org.anarres.cpp.Token
Returns the column at which this token started.
getErrors() - Method in class org.anarres.cpp.DefaultPreprocessorListener
 
getExponent() - Method in class org.anarres.cpp.NumericValue
 
getExponentBase() - Method in class org.anarres.cpp.NumericValue
 
getFeature(Feature) - Method in class org.anarres.cpp.Preprocessor
Returns true if the given feature is in the feature-set of this Preprocessor.
getFeatures() - Method in class org.anarres.cpp.Preprocessor
Returns the feature-set for this Preprocessor.
getFile(String) - Method in class org.anarres.cpp.ChrootFileSystem
 
getFile(String, String) - Method in class org.anarres.cpp.ChrootFileSystem
 
getFile() - Method in class org.anarres.cpp.FileLexerSource
 
getFile(String) - Method in class org.anarres.cpp.JavaFileSystem
 
getFile(String, String) - Method in class org.anarres.cpp.JavaFileSystem
 
getFile(String) - Method in class org.anarres.cpp.ResourceFileSystem
 
getFile(String, String) - Method in class org.anarres.cpp.ResourceFileSystem
 
getFile(String) - Method in interface org.anarres.cpp.VirtualFileSystem
 
getFile(String, String) - Method in interface org.anarres.cpp.VirtualFileSystem
 
getFileSystem() - Method in class org.anarres.cpp.Preprocessor
Returns the VirtualFileSystem used by this Preprocessor.
getFlags() - Method in class org.anarres.cpp.NumericValue
 
getFractionalPart() - Method in class org.anarres.cpp.NumericValue
 
getFrameworksPath() - Method in class org.anarres.cpp.Preprocessor
Returns the Objective-C frameworks path used by this Preprocessor.
getIncludes() - Method in class org.anarres.cpp.Preprocessor
Returns the list of VirtualFiles which have been included by this Preprocessor.
getInstance() - Static method in class org.anarres.cpp.BuildMetadata
 
getIntegerPart() - Method in class org.anarres.cpp.NumericValue
 
getLine() - Method in class org.anarres.cpp.LexerSource
Returns the line number of the last read character in this source.
getLine() - Method in class org.anarres.cpp.Source
Returns the current line number within this Source.
getLine() - Method in class org.anarres.cpp.Token
Returns the line at which this token started.
getListener() - Method in class org.anarres.cpp.Preprocessor
Returns the PreprocessorListener which handles events for this Preprocessor.
getMacro(String) - Method in class org.anarres.cpp.Preprocessor
Returns the named macro.
getMacros() - Method in class org.anarres.cpp.Preprocessor
Returns the Map of Macros parsed during the run of this Preprocessor.
getName() - Method in class org.anarres.cpp.CppTask.Macro
 
getName() - Method in class org.anarres.cpp.FileLexerSource
 
getName() - Method in class org.anarres.cpp.InputLexerSource
 
getName() - Method in class org.anarres.cpp.Macro
Returns the name of this macro.
getName() - Method in class org.anarres.cpp.Source
Returns the human-readable name of the current Source.
getName() - Method in interface org.anarres.cpp.VirtualFile
 
getParentFile() - Method in interface org.anarres.cpp.VirtualFile
 
getPath() - Method in class org.anarres.cpp.FileLexerSource
This is not necessarily the same as getFile().getPath() in case we are in a chroot.
getPath() - Method in class org.anarres.cpp.InputLexerSource
 
getPath() - Method in class org.anarres.cpp.Source
Returns the File currently being lexed.
getPath() - Method in interface org.anarres.cpp.VirtualFile
 
getPreprocessor() - Method in class org.anarres.cpp.CppReader
Returns the Preprocessor used by this CppReader.
getQuoteIncludePath() - Method in class org.anarres.cpp.Preprocessor
Returns the user include-path of this Preprocessor.
getSource() - Method in class org.anarres.cpp.Macro
Returns the Source from which this macro was parsed.
getSource() - Method in class org.anarres.cpp.Preprocessor
Returns the top Source on the input stack.
getSource() - Method in interface org.anarres.cpp.VirtualFile
 
getSystemIncludePath() - Method in class org.anarres.cpp.Preprocessor
Returns the system include-path of this Preprocessor.
getText() - Method in class org.anarres.cpp.Macro
 
getText() - Method in class org.anarres.cpp.Token
Returns the original or generated text of this token.
getTokenName(int) - Static method in class org.anarres.cpp.Token
Returns the descriptive name of the given token type.
getType() - Method in class org.anarres.cpp.Token
Returns the semantic type of this token.
getValue() - Method in class org.anarres.cpp.CppTask.Macro
 
getValue() - Method in class org.anarres.cpp.Token
Returns the semantic value of this token.
getVersion() - Method in class org.anarres.cpp.BuildMetadata
 
getWarning(Warning) - Method in class org.anarres.cpp.Preprocessor
Returns true if the given warning is in the warning-set of this Preprocessor.
getWarnings() - Method in class org.anarres.cpp.DefaultPreprocessorListener
 
getWarnings() - Method in class org.anarres.cpp.Preprocessor
Returns the warning-set for this Preprocessor.

H

handleError(Source, int, int, String) - Method in class org.anarres.cpp.DefaultPreprocessorListener
Handles an error.
handleError(Source, int, int, String) - Method in interface org.anarres.cpp.PreprocessorListener
Handles an error.
handleSourceChange(Source, PreprocessorListener.SourceChangeEvent) - Method in class org.anarres.cpp.DefaultPreprocessorListener
 
handleSourceChange(Source, PreprocessorListener.SourceChangeEvent) - Method in interface org.anarres.cpp.PreprocessorListener
 
handleWarning(Source, int, int, String) - Method in class org.anarres.cpp.DefaultPreprocessorListener
Handles a warning.
handleWarning(Source, int, int, String) - Method in interface org.anarres.cpp.PreprocessorListener
Handles a warning.
HASH - Static variable in class org.anarres.cpp.Token
 
hasNext() - Method in class org.anarres.cpp.SourceIterator
Returns true if the enclosed Source has more tokens.
HEADER - Static variable in class org.anarres.cpp.Token
 

I

IDENTIFIER - Static variable in class org.anarres.cpp.Token
 
INC - Static variable in class org.anarres.cpp.Token
 
include(VirtualFile) - Method in class org.anarres.cpp.Preprocessor
Attempts to include the given file.
include(Iterable<String>, String) - Method in class org.anarres.cpp.Preprocessor
Attempts to include a file from an include path, by name.
InputLexerSource - Class in org.anarres.cpp
A Source which lexes an InputStream.
InputLexerSource(InputStream) - Constructor for class org.anarres.cpp.InputLexerSource
Deprecated.
InputLexerSource(InputStream, Charset) - Constructor for class org.anarres.cpp.InputLexerSource
Creates a new Source for lexing the given Reader.
InputLexerSource(Reader, boolean) - Constructor for class org.anarres.cpp.InputLexerSource
 
InputLexerSource(Reader) - Constructor for class org.anarres.cpp.InputLexerSource
 
InternalException - Exception in org.anarres.cpp
An internal exception.
InternalException(String) - Constructor for exception org.anarres.cpp.InternalException
 
intValue() - Method in class org.anarres.cpp.NumericValue
 
INVALID - Static variable in class org.anarres.cpp.Token
 
isFile() - Method in interface org.anarres.cpp.VirtualFile
 
isFunctionLike() - Method in class org.anarres.cpp.Macro
Returns true if this is a function-like macro.
isVariadic() - Method in class org.anarres.cpp.Macro
Returns true if this is a variadic function-like macro.
iterator() - Method in class org.anarres.cpp.Source
Returns a token iterator for this Source.

J

JavaFileSystem - Class in org.anarres.cpp
A virtual filesystem implementation using java.io.
JavaFileSystem() - Constructor for class org.anarres.cpp.JavaFileSystem
 

L

LAND - Static variable in class org.anarres.cpp.Token
 
LAND_EQ - Static variable in class org.anarres.cpp.Token
 
LE - Static variable in class org.anarres.cpp.Token
 
LexerException - Exception in org.anarres.cpp
A preprocessor exception.
LexerException(String) - Constructor for exception org.anarres.cpp.LexerException
 
LexerException(Throwable) - Constructor for exception org.anarres.cpp.LexerException
 
LexerSource - Class in org.anarres.cpp
Does not handle digraphs.
LexerSource(Reader, boolean) - Constructor for class org.anarres.cpp.LexerSource
 
LITERAL - Static variable in class org.anarres.cpp.Token
 
longValue() - Method in class org.anarres.cpp.NumericValue
 
LOR - Static variable in class org.anarres.cpp.Token
 
LOR_EQ - Static variable in class org.anarres.cpp.Token
 
LSH - Static variable in class org.anarres.cpp.Token
 
LSH_EQ - Static variable in class org.anarres.cpp.Token
 

M

M_ARG - Static variable in class org.anarres.cpp.Token
 
M_PASTE - Static variable in class org.anarres.cpp.Token
 
M_STRING - Static variable in class org.anarres.cpp.Token
 
Macro() - Constructor for class org.anarres.cpp.CppTask.Macro
 
Macro - Class in org.anarres.cpp
A macro object.
Macro(Source, String) - Constructor for class org.anarres.cpp.Macro
 
Macro(String) - Constructor for class org.anarres.cpp.Macro
 
Main - Class in org.anarres.cpp
(Currently a simple test class).
Main() - Constructor for class org.anarres.cpp.Main
 
main(String[]) - Static method in class org.anarres.cpp.Main
 
MOD_EQ - Static variable in class org.anarres.cpp.Token
 
MULT_EQ - Static variable in class org.anarres.cpp.Token
 

N

NE - Static variable in class org.anarres.cpp.Token
 
next() - Method in class org.anarres.cpp.SourceIterator
Returns the next token from the enclosed Source.
NL - Static variable in class org.anarres.cpp.Token
 
NUMBER - Static variable in class org.anarres.cpp.Token
 
NumericValue - Class in org.anarres.cpp
 
NumericValue(int, String) - Constructor for class org.anarres.cpp.NumericValue
 

O

OR_EQ - Static variable in class org.anarres.cpp.Token
 
org.anarres.cpp - package org.anarres.cpp
 

P

P_LINE - Static variable in class org.anarres.cpp.Token
 
PASTE - Static variable in class org.anarres.cpp.Token
 
PLUS_EQ - Static variable in class org.anarres.cpp.Token
 
pop_source(boolean) - Method in class org.anarres.cpp.Preprocessor
Pops a Source from the input stack.
pop_source() - Method in class org.anarres.cpp.Preprocessor
 
pragma(Token, List<Token>) - Method in class org.anarres.cpp.Preprocessor
 
pragma_once(Token) - Method in class org.anarres.cpp.Preprocessor
 
Preprocessor - Class in org.anarres.cpp
A C Preprocessor.
Preprocessor() - Constructor for class org.anarres.cpp.Preprocessor
 
Preprocessor(Source) - Constructor for class org.anarres.cpp.Preprocessor
 
Preprocessor(File) - Constructor for class org.anarres.cpp.Preprocessor
Equivalent to 'new Preprocessor(new FileLexerSource(file))'
PreprocessorCommand - Enum in org.anarres.cpp
 
PreprocessorListener - Interface in org.anarres.cpp
A handler for preprocessor events, primarily errors and warnings.
PreprocessorListener.SourceChangeEvent - Enum in org.anarres.cpp
 
print(String) - Method in class org.anarres.cpp.DefaultPreprocessorListener
 
push_source(Source, boolean) - Method in class org.anarres.cpp.Preprocessor
Pushes a Source onto the input stack.

R

RANGE - Static variable in class org.anarres.cpp.Token
 
read() - Method in class org.anarres.cpp.CppReader
 
read(char[], int, int) - Method in class org.anarres.cpp.CppReader
 
remove() - Method in class org.anarres.cpp.SourceIterator
Not supported.
RESOURCE - Static variable in class org.anarres.cpp.BuildMetadata
 
ResourceFileSystem - Class in org.anarres.cpp
 
ResourceFileSystem(ClassLoader, Charset) - Constructor for class org.anarres.cpp.ResourceFileSystem
 
RSH - Static variable in class org.anarres.cpp.Token
 
RSH_EQ - Static variable in class org.anarres.cpp.Token
 
run(String[]) - Method in class org.anarres.cpp.Main
 

S

setArgs(List<String>) - Method in class org.anarres.cpp.Macro
Sets the arguments to this macro.
setFileSystem(VirtualFileSystem) - Method in class org.anarres.cpp.Preprocessor
Sets the VirtualFileSystem used by this Preprocessor.
setFrameworksPath(List<String>) - Method in class org.anarres.cpp.Preprocessor
Sets the Objective-C frameworks path used by this Preprocessor.
setListener(PreprocessorListener) - Method in class org.anarres.cpp.Preprocessor
Sets the PreprocessorListener which handles events for this Preprocessor.
setListener(PreprocessorListener) - Method in class org.anarres.cpp.Source
Sets the listener for this Source.
setName(String) - Method in class org.anarres.cpp.CppTask.Macro
 
setQuoteIncludePath(List<String>) - Method in class org.anarres.cpp.Preprocessor
Sets the user include path used by this Preprocessor.
setSource(Source) - Method in class org.anarres.cpp.Macro
Sets the Source from which this macro was parsed.
setSystemIncludePath(List<String>) - Method in class org.anarres.cpp.Preprocessor
Sets the system include path used by this Preprocessor.
setValue(String) - Method in class org.anarres.cpp.CppTask.Macro
 
setVariadic(boolean) - Method in class org.anarres.cpp.Macro
Sets the variadic flag on this Macro.
skipline(boolean) - Method in class org.anarres.cpp.Source
Skips tokens until the end of line.
Source - Class in org.anarres.cpp
An input to the Preprocessor.
Source() - Constructor for class org.anarres.cpp.Source
 
SourceIterator - Class in org.anarres.cpp
An Iterator for Sources, returning Tokens.
SourceIterator(Source) - Constructor for class org.anarres.cpp.SourceIterator
 
SQSTRING - Static variable in class org.anarres.cpp.Token
 
STRING - Static variable in class org.anarres.cpp.Token
 
StringLexerSource - Class in org.anarres.cpp
A Source for lexing a String.
StringLexerSource(String, boolean) - Constructor for class org.anarres.cpp.StringLexerSource
Creates a new Source for lexing the given String.
StringLexerSource(String) - Constructor for class org.anarres.cpp.StringLexerSource
Creates a new Source for lexing the given String.
SUB_EQ - Static variable in class org.anarres.cpp.Token
 

T

toBigDecimal() - Method in class org.anarres.cpp.NumericValue
So, it turns out that parsing arbitrary bases into arbitrary precision numbers is nontrivial, and this routine gets it wrong in many important cases.
toBufferedReader(Reader) - Static method in class org.anarres.cpp.LexerSource
 
toJavaLangNumber() - Method in class org.anarres.cpp.NumericValue
 
token() - Method in class org.anarres.cpp.LexerSource
 
token() - Method in class org.anarres.cpp.Preprocessor
Returns the next preprocessor token.
token() - Method in class org.anarres.cpp.Source
Returns the next Token parsed from this input stream.
Token - Class in org.anarres.cpp
A Preprocessor token.
Token(int, int, int, String, Object) - Constructor for class org.anarres.cpp.Token
 
Token(int, int, int, String) - Constructor for class org.anarres.cpp.Token
 
toString() - Method in class org.anarres.cpp.FileLexerSource
 
toString() - Method in class org.anarres.cpp.InputLexerSource
 
toString() - Method in class org.anarres.cpp.Macro
 
toString() - Method in class org.anarres.cpp.NumericValue
 
toString() - Method in class org.anarres.cpp.Preprocessor
 
toString() - Method in class org.anarres.cpp.StringLexerSource
 
toString() - Method in class org.anarres.cpp.Token
Returns a description of this token, for debugging purposes.

V

valueOf(String) - Static method in enum org.anarres.cpp.Feature
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.anarres.cpp.PreprocessorCommand
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.anarres.cpp.PreprocessorListener.SourceChangeEvent
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.anarres.cpp.Warning
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.anarres.cpp.Feature
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.anarres.cpp.PreprocessorCommand
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.anarres.cpp.PreprocessorListener.SourceChangeEvent
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.anarres.cpp.Warning
Returns an array containing the constants of this enum type, in the order they are declared.
VirtualFile - Interface in org.anarres.cpp
An extremely lightweight virtual file interface.
VirtualFileSystem - Interface in org.anarres.cpp
An extremely lightweight virtual file system interface.

W

warning(int, int, String) - Method in class org.anarres.cpp.Preprocessor
Handles a warning.
warning(Token, String) - Method in class org.anarres.cpp.Preprocessor
Handles a warning.
warning(int, int, String) - Method in class org.anarres.cpp.Source
 
Warning - Enum in org.anarres.cpp
Warning classes which may optionally be emitted by the Preprocessor.
WHITESPACE - Static variable in class org.anarres.cpp.Token
 

X

XOR_EQ - Static variable in class org.anarres.cpp.Token
 
A B C D E F G H I J L M N O P R S T V W X 
Skip navigation links