Package com.strobel.decompiler.languages

Examples of com.strobel.decompiler.languages.TextLocation


                lastUsingDeclaration = false;
            }
        }

        nodeStack.push(node);
        startLocations.push(new TextLocation(output.getRow(), output.getColumn()));

        if (node instanceof EntityDeclaration &&
            node.getUserData(Keys.MEMBER_REFERENCE) != null &&
            node.getChildByRole(Roles.IDENTIFIER).isNull()) {
View Full Code Here


        this(TextLocation.EMPTY);
    }

    public SuperReferenceExpression(final TextLocation startLocation) {
        _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

        return getLocation();
    }

    @Override
    public TextLocation getEndLocation() {
        final TextLocation location = getLocation();
        return new TextLocation(location.line(), location.column() + 1);
    }
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

    public final boolean contains(final TextLocation location) {
        if (location == null || location.isEmpty()) {
            return false;
        }

        final TextLocation startLocation = getStartLocation();
        final TextLocation endLocation = getEndLocation();

        return startLocation != null &&
               endLocation != null &&
               location.compareTo(startLocation) >= 0 &&
               location.compareTo(endLocation) < 0;
View Full Code Here

               location.compareTo(startLocation) >= 0 &&
               location.compareTo(endLocation) < 0;
    }

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

    public final boolean isInside(final TextLocation location) {
        if (location == null || location.isEmpty()) {
            return false;
        }

        final TextLocation startLocation = getStartLocation();
        final TextLocation endLocation = getEndLocation();

        return startLocation != null &&
               endLocation != null &&
               location.compareTo(startLocation) >= 0 &&
               location.compareTo(endLocation) <= 0;
View Full Code Here

        this(TextLocation.EMPTY);
    }

    protected NewLineNode(final TextLocation startLocation) {
        _startLocation = startLocation != null ? startLocation : TextLocation.EMPTY;
        _endLocation = new TextLocation(_startLocation.line() + 1, 1);
    }
View Full Code Here

        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

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.