Top Description Constructors Methods
com.jogamp.gluegen.jcpp

public Class InputLexerSource

extends LexerSource
Class Inheritance
Imports
java.io.BufferedReader, .IOException, .InputStream, .InputStreamReader

A Source which lexes a file. The input is buffered.
See Also
Source

Constructor Summary

AccessConstructor and Description
public
InputLexerSource(InputStream input)

Creates a new Source for lexing the given Reader.

Method Summary

Modifier and TypeMethod and Description
public String
getName()

Overrides com.jogamp.gluegen.jcpp.Source.getName.

Returns the human-readable name of the current Source.
public String
getPath()

Overrides com.jogamp.gluegen.jcpp.Source.getPath.

Returns the File currently being lexed.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from com.jogamp.gluegen.jcpp.LexerSource:
closeerrorgetColumngetLineinitisNumberedsetIncludetokenwarning

Constructor Detail

InputLexerSourceback to summary
public InputLexerSource(InputStream input) throws IOException

Creates a new Source for lexing the given Reader. Preprocessor directives are honoured within the file.

Method Detail

getNameback to summary
public String getName()

Overrides com.jogamp.gluegen.jcpp.Source.getName.

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

Returns the human-readable name of the current Source.

Annotations
@Override
getPathback to summary
public String getPath()

Overrides com.jogamp.gluegen.jcpp.Source.getPath.

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

Returns the File currently being lexed. If this Source is not a FileLexerSource, then it will ask the parent Source, and so forth recursively. If no Source on the stack is a FileLexerSource, returns null.

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