All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.dart.compiler.common.SourceInfoImpl Maven / Gradle / Ivy

There is a newer version: 2.1.0-Beta1
Show newest version
package com.google.dart.compiler.common;

import com.google.dart.compiler.Source;

public class SourceInfoImpl implements SourceInfo {
    protected Source source = null;
    protected int line = -1;
    protected int column = -1;
    protected int start = -1;
    protected int length = -1;

    public SourceInfoImpl(Source source, int line, int column, int start, int length) {
        this.source = source;
        this.line = line;
        this.column = column;
        this.start = start;
        this.length = length;
    }

    @Override
    public Source getSource() {
        return source;
    }

    @Override
    public int getLine() {
        return line;
    }

    @Override
    public int getColumn() {
        return column;
    }

    @Override
    public int getStart() {
        return start;
    }

    @Override
    public int getLength() {
        return length;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy