Examples of TextLocation


Examples of com.strobel.decompiler.languages.TextLocation

        this(TextLocation.EMPTY);
    }

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

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

Examples of com.strobel.decompiler.languages.TextLocation

    }

    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

Examples of com.strobel.decompiler.languages.TextLocation

        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

Examples of com.strobel.decompiler.languages.TextLocation

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

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

Examples of com.strobel.decompiler.languages.TextLocation

        return getLocation();
    }

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

Examples of com.strobel.decompiler.languages.TextLocation

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

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

Examples of com.strobel.decompiler.languages.TextLocation

    }

    @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

Examples of com.strobel.decompiler.languages.TextLocation

    }

    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

Examples of com.strobel.decompiler.languages.TextLocation

        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
TOP
Copyright © 2018 www.massapi.com. 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.