Top Description Fields Constructors Methods
com.jogamp.gluegen.jcpp

public Class FileLexerSource

extends LexerSource
Class Inheritance
Imports
java.io.BufferedReader, .File, .FileReader, .IOException, javax.annotation.Nonnull

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

Field Summary

Modifier and TypeField and Description
private final File
private final String

Constructor Summary

AccessConstructor and Description
public
FileLexerSource(File file, String path)

Creates a new Source for lexing the given File.

public
public

Method Summary

Modifier and TypeMethod and Description
public File
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.

This is not necessarily the same as getFile().getPath() in case we are in a chroot.
public String
toString()

Overrides java.lang.Object.toString.

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

Field Detail

fileback to summary
private final File file
pathback to summary
private final String path

Constructor Detail

FileLexerSourceback to summary
public FileLexerSource(File file, String path) throws IOException

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

FileLexerSourceback to summary
public FileLexerSource(File file) throws IOException
FileLexerSourceback to summary
public FileLexerSource(String path) throws IOException

Method Detail

getFileback to summary
public File getFile()
Annotations
@Nonnull
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.

This is not necessarily the same as getFile().getPath() in case we are in a chroot.

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