Package com.strobel.decompiler.languages

Examples of com.strobel.decompiler.languages.TextLocation


        setChildByRole(Roles.TARGET_EXPRESSION, value);
    }

    public final void setStartLocation(final TextLocation startLocation) {
        _startLocation = VerifyArgument.notNull(startLocation, "startLocation");
        _endLocation = new TextLocation(startLocation.line(), startLocation.column() + THIS_TEXT.length());
    }
View Full Code Here


    }

    public SuperReferenceExpression(final int offset, final TextLocation startLocation) {
        super( offset);
        _startLocation = VerifyArgument.notNull(startLocation, "startLocation");
        _endLocation = new TextLocation(startLocation.line(), startLocation.column() + SUPER_TEXT.length());
    }
View Full Code Here

        setChildByRole(Roles.TARGET_EXPRESSION, value);
    }

    public void setStartLocation(final TextLocation startLocation) {
        _startLocation = VerifyArgument.notNull(startLocation, "startLocation");
        _endLocation = new TextLocation(startLocation.line(), startLocation.column() + SUPER_TEXT.length());
    }
View Full Code Here

    @Override
    public TextLocation getEndLocation() {
        final String name = _name;

        return new TextLocation(
            _startLocation.line(),
            _startLocation.column() + (name != null ? name.length() : 0)
        );
    }
View Full Code Here

        return getLocation();
    }

    @Override
    public TextLocation getEndLocation() {
        final TextLocation location = getLocation();
        return new TextLocation(location.line(), location.column() + 1);
    }
View Full Code Here

        _literalValue = literalValue != null ? literalValue : StringUtilities.EMPTY;
    }

    @Override
    public TextLocation getStartLocation() {
        final TextLocation startLocation = _startLocation;
        return startLocation != null ? startLocation : TextLocation.EMPTY;
    }
View Full Code Here

    }

    @Override
    public TextLocation getEndLocation() {
        if (_endLocation == null) {
            final TextLocation startLocation = getStartLocation();
            if (_literalValue == null) {
                return startLocation;
            }
            _endLocation = new TextLocation(_startLocation.line(), _startLocation.column() + _literalValue.length());
        }
        return _endLocation;
    }
View Full Code Here

    }

    public NullReferenceExpression( final int offset, final TextLocation startLocation) {
        super( offset);
        _startLocation = VerifyArgument.notNull(startLocation, "startLocation");
        _endLocation = new TextLocation(startLocation.line(), startLocation.column() + NULL_TEXT.length());
    }
View Full Code Here

        return _endLocation;
    }

    public void setStartLocation(final TextLocation startLocation) {
        _startLocation = VerifyArgument.notNull(startLocation, "startLocation");
        _endLocation = new TextLocation(startLocation.line(), startLocation.column() + NULL_TEXT.length());
    }
View Full Code Here

    public Region getRegion() {
        return new Region(getStartLocation(), getEndLocation());
    }

    public final boolean contains(final int line, final int column) {
        return contains(new TextLocation(line, column));
    }
View Full Code Here

TOP

Related Classes of com.strobel.decompiler.languages.TextLocation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.