- All Superinterfaces:
public interface MacroExpansion extends Formation
A MacroExpansion represents an instance of the expansion of a preprocessor (object or function) macro, which replaces one token by a sequence of new tokens. This object represents the result of a macro expansion as it relates to two tokens: the original (or "start") token before substitution, and the resulting replacement token.
Method SummaryModifier and TypeMethodDescription
getMacro()Returns the (function or object) macro that is being applied.
intReturns the index of the replacement token in the sequence of replacement tokens specified in the macro definition.Gets the original token which was replaced.
getStartTokenCivlcToken getStartToken()Gets the original token which was replaced. For an object macro, there is only one such possible token in each instance of macro expansion; it is the token which is an identifier with the name of the macro. For a function macro, it is one of the tokens in one of the arguments to the macro or the function macro identifier itself.
- the original token which is replaced
getMacroMacro getMacro()Returns the (function or object) macro that is being applied.
- the macro being applied
getReplacementTokenIndexint getReplacementTokenIndex()Returns the index of the replacement token in the sequence of replacement tokens specified in the macro definition.
- the replacement token index