Java Code Examples for org.mozilla.javascript.Token#CommentType

The following examples show how to use org.mozilla.javascript.Token#CommentType . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Comment.java    From JsDroidCmd with Mozilla Public License 2.0 4 votes vote down vote up
/**
 * Returns the comment style
 */
public Token.CommentType getCommentType() {
    return commentType;
}
 
Example 2
Source File: Comment.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns the comment style
 */
public Token.CommentType getCommentType() {
    return commentType;
}
 
Example 3
Source File: Comment.java    From JsDroidCmd with Mozilla Public License 2.0 2 votes vote down vote up
/**
 * Constructs a new Comment
 * @param pos the start position
 * @param len the length including delimiter(s)
 * @param type the comment type
 * @param value the value of the comment, as a string
 */
public Comment(int pos, int len, Token.CommentType type, String value) {
    super(pos, len);
    commentType = type;
    this.value = value;
}
 
Example 4
Source File: Comment.java    From JsDroidCmd with Mozilla Public License 2.0 2 votes vote down vote up
/**
 * Sets the comment style
 * @param type the comment style, a
 * {@link org.mozilla.javascript.Token.CommentType}
 */
public void setCommentType(Token.CommentType type) {
    this.commentType = type;
}
 
Example 5
Source File: Comment.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Constructs a new Comment
 * @param pos the start position
 * @param len the length including delimiter(s)
 * @param type the comment type
 * @param value the value of the comment, as a string
 */
public Comment(int pos, int len, Token.CommentType type, String value) {
    super(pos, len);
    commentType = type;
    this.value = value;
}
 
Example 6
Source File: Comment.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the comment style
 * @param type the comment style, a
 * {@link org.mozilla.javascript.Token.CommentType}
 */
public void setCommentType(Token.CommentType type) {
    this.commentType = type;
}