Top Fields Constructors Methods
com.jogamp.gluegen.jcpp

pack-priv Class MacroTokenSource

extends Source
Class Inheritance
Imports
java.io.IOException, java.util.Iterator, .List, javax.annotation.Nonnull

Field Summary

Modifier and TypeField and Description
private Iterator<Token>
private final List<Argument>
private final Macro
private final Iterator<Token>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
pack-priv static void
pack-priv boolean
isExpanding(Macro m)

Overrides com.jogamp.gluegen.jcpp.Source.isExpanding.

Returns true if this Source is expanding the given macro.
private void
paste(Token ptok)

private Token
public Token
token()

Implements abstract com.jogamp.gluegen.jcpp.Source.token.

Returns the next Token parsed from this input stream.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from com.jogamp.gluegen.jcpp.Source:
closeerrorgetColumngetLinegetNamegetParentgetPathinitisActiveisAutopopisNumberediteratorsetActivesetListenersetParentskiplinewarning

Field Detail

argback to summary
private Iterator<Token> arg
argsback to summary
private final List<Argument> args
macroback to summary
private final Macro macro
tokensback to summary
private final Iterator<Token> tokens

Constructor Detail

MacroTokenSourceback to summary
pack-priv MacroTokenSource(Macro m, List<Argument> args)

Method Detail

concatback to summary
private void concat(StringBuilder buf, Argument arg)
escapeback to summary
pack-priv static void escape(StringBuilder buf, CharSequence cs)
isExpandingback to summary
pack-priv boolean isExpanding(Macro m)

Overrides com.jogamp.gluegen.jcpp.Source.isExpanding.

Doc from com.jogamp.gluegen.jcpp.Source.isExpanding.

Returns true if this Source is expanding the given macro. This is used to prevent macro recursion.

Annotations
@Override
pasteback to summary
private void paste(Token ptok) throws IOException, LexerException
stringifyback to summary
private Token stringify(Token pos, Argument arg)
Annotations
@Nonnull
tokenback to summary
public Token token() throws IOException, LexerException

Implements abstract com.jogamp.gluegen.jcpp.Source.token.

Doc from com.jogamp.gluegen.jcpp.Source.token.

Returns the next Token parsed from this input stream.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override