Token#M_ARG and Token#M_STRING.
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private boolean | |
| private final String | |
| private final Source | |
| private List | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| private | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public int | |
| public String | |
| public Source | |
| public String | |
| pack-priv List | |
| public boolean | |
| public boolean | |
| public boolean | |
| pack-priv void | |
| public void | |
| public String |
| args | back to summary |
|---|---|
| private List<String> args | |
| hasPaste | back to summary |
|---|---|
| private boolean hasPaste | |
| name | back to summary |
|---|---|
| private final String name | |
| source | back to summary |
|---|---|
| private final Source source | |
| tokens | back to summary |
|---|---|
| private List<Token> tokens | |
| variadic | back to summary |
|---|---|
| private boolean variadic | |
| Macro | back to summary |
|---|---|
| public Macro(final Source source, final String name) | |
| Macro | back to summary |
|---|---|
| public Macro(final Macro o) | |
| Macro | back to summary |
|---|---|
| public Macro(final Macro o, final List<Token> tokens) | |
| Macro | back to summary |
|---|---|
| private Macro(final Macro o, final List<Token> tokens, final boolean copyTokens) | |
| Macro | back to summary |
|---|---|
| public Macro(final String name) | |
| addPaste | back to summary |
|---|---|
| public void addPaste(final Token tok) Adds a "paste" operator to the expansion of this macro. A paste operator causes the next token added to be pasted to the previous token when the macro is expanded. It is an error for a macro to end with a paste token. | |
| addToken | back to summary |
|---|---|
| public void addToken(final Token tok) Adds a token to the expansion of this macro. | |
| getArgs | back to summary |
|---|---|
| public int getArgs() Returns the number of arguments to this macro. | |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of this macro. | |
| getSource | back to summary |
|---|---|
| public Source getSource() Returns the Source from which this macro was parsed. This method may return null if the macro was not parsed from a regular file. | |
| getText | back to summary |
|---|---|
| public String getText() | |
| getTokens | back to summary |
|---|---|
| pack-priv List | |
| hasPaste | back to summary |
|---|---|
| public boolean hasPaste() Returns true if this macro contains a "paste" operator. | |
| isFunctionLike | back to summary |
|---|---|
| public boolean isFunctionLike() Returns true if this is a function-like macro. | |
| isVariadic | back to summary |
|---|---|
| public boolean isVariadic() Returns true if this is a variadic function-like macro. | |
| setArgs | back to summary |
|---|---|
| pack-priv void setArgs(final List<String> args) Sets the arguments to this macro. | |
| setVariadic | back to summary |
|---|---|
| public void setVariadic(final boolean b) Sets the variadic flag on this Macro. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |