public class MXMLTokenQuery extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
TOKEN_TYPE_FORMATTING |
| Constructor and Description |
|---|
MXMLTokenQuery(org.apache.royale.compiler.parsing.IMXMLToken[] tokens) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.royale.compiler.parsing.IMXMLToken |
getCommentAfter(org.apache.royale.compiler.common.ISourceLocation after)
Returns the first comment that appears after the end of a particular
source location.
|
org.apache.royale.compiler.parsing.IMXMLToken |
getCommentBefore(org.apache.royale.compiler.common.ISourceLocation before)
Returns the first comment that appears before the start of a particular
source location.
|
org.apache.royale.compiler.parsing.IMXMLToken |
getFormattingAfter(org.apache.royale.compiler.common.ISourceLocation after)
Returns the first formatting token that appears after the end of a
particular source location.
|
org.apache.royale.compiler.parsing.IMXMLToken |
getFormattingBefore(org.apache.royale.compiler.common.ISourceLocation before)
Returns the first formatting token that appears before the start of a
particular source location.
|
org.apache.royale.compiler.parsing.IMXMLToken |
getSignificantTokenAfter(org.apache.royale.compiler.common.ISourceLocation after)
Returns the first non-comment, non-formatting token that appears after
the end of a particular source location.
|
org.apache.royale.compiler.parsing.IMXMLToken |
getSignificantTokenBefore(org.apache.royale.compiler.common.ISourceLocation before)
Returns the first non-comment, non-formatting token that appears before
the start of a particular source location.
|
org.apache.royale.compiler.parsing.IMXMLToken |
getTokenAfter(org.apache.royale.compiler.common.ISourceLocation sourceLocation)
Returns the token immediately after a source location.
|
org.apache.royale.compiler.parsing.IMXMLToken |
getTokenAfter(org.apache.royale.compiler.common.ISourceLocation sourceLocation,
boolean skipComments,
boolean skipFormatting)
Returns the token immediately after a source location, with the option to
skip comment tokens.
|
org.apache.royale.compiler.parsing.IMXMLToken |
getTokenBefore(org.apache.royale.compiler.common.ISourceLocation sourceLocation)
Returns the token immediately before a source location.
|
org.apache.royale.compiler.parsing.IMXMLToken |
getTokenBefore(org.apache.royale.compiler.common.ISourceLocation sourceLocation,
boolean skipComments,
boolean skipFormatting)
Returns the token immediately before a source location, with the option
to skip comment and formatting tokens.
|
org.apache.royale.compiler.parsing.IMXMLToken[] |
getTokens()
Returns all tokens in the file.
|
boolean |
isComment(org.apache.royale.compiler.parsing.IMXMLToken token)
Checks if a token is comment.
|
boolean |
isFormatting(org.apache.royale.compiler.parsing.IMXMLToken token)
Checks if a token is formatting.
|
public static final int TOKEN_TYPE_FORMATTING
public MXMLTokenQuery(org.apache.royale.compiler.parsing.IMXMLToken[] tokens)
public org.apache.royale.compiler.parsing.IMXMLToken[] getTokens()
public org.apache.royale.compiler.parsing.IMXMLToken getTokenBefore(org.apache.royale.compiler.common.ISourceLocation sourceLocation)
public org.apache.royale.compiler.parsing.IMXMLToken getTokenBefore(org.apache.royale.compiler.common.ISourceLocation sourceLocation,
boolean skipComments,
boolean skipFormatting)
public org.apache.royale.compiler.parsing.IMXMLToken getTokenAfter(org.apache.royale.compiler.common.ISourceLocation sourceLocation)
public org.apache.royale.compiler.parsing.IMXMLToken getTokenAfter(org.apache.royale.compiler.common.ISourceLocation sourceLocation,
boolean skipComments,
boolean skipFormatting)
public boolean isComment(org.apache.royale.compiler.parsing.IMXMLToken token)
public org.apache.royale.compiler.parsing.IMXMLToken getCommentBefore(org.apache.royale.compiler.common.ISourceLocation before)
public org.apache.royale.compiler.parsing.IMXMLToken getCommentAfter(org.apache.royale.compiler.common.ISourceLocation after)
public boolean isFormatting(org.apache.royale.compiler.parsing.IMXMLToken token)
public org.apache.royale.compiler.parsing.IMXMLToken getFormattingBefore(org.apache.royale.compiler.common.ISourceLocation before)
public org.apache.royale.compiler.parsing.IMXMLToken getFormattingAfter(org.apache.royale.compiler.common.ISourceLocation after)
public org.apache.royale.compiler.parsing.IMXMLToken getSignificantTokenBefore(org.apache.royale.compiler.common.ISourceLocation before)
public org.apache.royale.compiler.parsing.IMXMLToken getSignificantTokenAfter(org.apache.royale.compiler.common.ISourceLocation after)
Copyright © 2023 The Apache Software Foundation. All rights reserved.