Top Fields Constructors Methods
org.jruby.lexer.yacc

public Class SimpleSourcePosition

extends Object
implements ISourcePosition
Class Inheritance
All Implemented Interfaces
org.jruby.lexer.yacc.ISourcePosition, org.jruby.runtime.PositionAware

Field Summary

Modifier and TypeField and Description
pack-priv final String
pack-priv final int

Constructor Summary

AccessConstructor and Description
public
SimpleSourcePosition(String filename, int line)

Method Summary

Modifier and TypeMethod and Description
public String
getFile()

Implements org.jruby.lexer.yacc.ISourcePosition.getFile.

Which file does this source position live in?

public int
getLine()

Implements org.jruby.lexer.yacc.ISourcePosition.getLine.

Which is the first(start) line that this source position occurs on (zero-based)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

filenameback to summary
pack-priv final String filename
lineback to summary
pack-priv final int line

Constructor Detail

SimpleSourcePositionback to summary
public SimpleSourcePosition(String filename, int line)

Method Detail

getFileback to summary
public String getFile()

Implements org.jruby.lexer.yacc.ISourcePosition.getFile.

Doc from org.jruby.lexer.yacc.ISourcePosition.getFile.

Which file does this source position live in?

Returns:String

name of the source file.

getLineback to summary
public int getLine()

Implements org.jruby.lexer.yacc.ISourcePosition.getLine.

Doc from org.jruby.lexer.yacc.ISourcePosition.getLine.

Which is the first(start) line that this source position occurs on (zero-based)

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override