Package org.eclipse.php.internal.core.util.text

Examples of org.eclipse.php.internal.core.util.text.TextSequence.subTextSequence()


      return false;
    }

    int classEnd = getCatchStart() + 5; // "catch"
    TextSequence statementText = getStatementText();
    statementText = statementText.subTextSequence(classEnd, statementText
        .length());

    int startPosition = 0;
    for (; startPosition < statementText.length(); startPosition++) {
      if (statementText.charAt(startPosition) == '(') {
View Full Code Here


    if (!super.isValid(sourceModule, offset, requestor)) {
      return false;
    }

    TextSequence statementText = getStatementText();
    statementText = statementText.subTextSequence(getTypeIdentifierEnd(),
        statementText.length());

    if (hasExtends()) {
      return true;
    }
View Full Code Here

    if (!super.isValid(sourceModule, offset, requestor)) {
      return false;
    }

    TextSequence statementText = getStatementText();
    statementText = statementText.subTextSequence(getTypeIdentifierEnd(),
        statementText.length());

    if (!hasExtends() && !hasImplements()) { // the cursor position is right
                          // after the class name
      return true;
View Full Code Here

                TextSequence textSequence = TextSequenceUtilities
                        .createTextSequence(sdRegion, startOffset, offset
                                - startOffset);

                // remove spaces from start.
                textSequence = textSequence.subTextSequence(
                        PHPTextSequenceUtilities.readForwardSpaces(
                                textSequence, 0), textSequence.length());

                return textSequence;
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.