congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Scanner.getType
Code IndexAdd Tabnine to your IDE (free)

How to use
getType
method
in
org.apache.batik.css.parser.Scanner

Best Java code snippets using org.apache.batik.css.parser.Scanner.getType (Showing top 6 results out of 315)

origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Skips the white spaces.
 */
protected int skipSpaces() {
  int lex = scanner.getType();
  while (lex == LexicalUnits.SPACE) {
    lex = next();
  }
  return lex;
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Skips the white spaces.
 */
protected int skipSpaces() {
  int lex = scanner.getType();
  while (lex == LexicalUnits.SPACE) {
    lex = next();
  }
  return lex;
}
origin: apache/batik

/**
 * Skips the white spaces.
 */
protected int skipSpaces() {
  int lex = scanner.getType();
  while (lex == LexicalUnits.SPACE) {
    lex = next();
  }
  return lex;
}
origin: apache/batik

/**
 * Parses a rule.
 */
protected void parseRule() {
  switch (scanner.getType()) {
  case LexicalUnits.IMPORT_SYMBOL:
    nextIgnoreSpaces();
    parseImportRule();
    break;
  case LexicalUnits.AT_KEYWORD:
    nextIgnoreSpaces();
    parseAtRule();
    break;
  case LexicalUnits.FONT_FACE_SYMBOL:
    nextIgnoreSpaces();
    parseFontFaceRule();
    break;
  case LexicalUnits.MEDIA_SYMBOL:
    nextIgnoreSpaces();
    parseMediaRule();
    break;
  case LexicalUnits.PAGE_SYMBOL:
    nextIgnoreSpaces();
    parsePageRule();
    break;
  default:
    parseRuleSet();
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Parses a rule.
 */
protected void parseRule() {
  switch (scanner.getType()) {
  case LexicalUnits.IMPORT_SYMBOL:
    nextIgnoreSpaces();
    parseImportRule();
    break;
  case LexicalUnits.AT_KEYWORD:
    nextIgnoreSpaces();
    parseAtRule();
    break;
  case LexicalUnits.FONT_FACE_SYMBOL:
    nextIgnoreSpaces();
    parseFontFaceRule();
    break;
  case LexicalUnits.MEDIA_SYMBOL:
    nextIgnoreSpaces();
    parseMediaRule();
    break;
  case LexicalUnits.PAGE_SYMBOL:
    nextIgnoreSpaces();
    parsePageRule();
    break;
  default:
    parseRuleSet();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Parses a rule.
 */
protected void parseRule() {
  switch (scanner.getType()) {
  case LexicalUnits.IMPORT_SYMBOL:
    nextIgnoreSpaces();
    parseImportRule();
    break;
  case LexicalUnits.AT_KEYWORD:
    nextIgnoreSpaces();
    parseAtRule();
    break;
  case LexicalUnits.FONT_FACE_SYMBOL:
    nextIgnoreSpaces();
    parseFontFaceRule();
    break;
  case LexicalUnits.MEDIA_SYMBOL:
    nextIgnoreSpaces();
    parseMediaRule();
    break;
  case LexicalUnits.PAGE_SYMBOL:
    nextIgnoreSpaces();
    parsePageRule();
    break;
  default:
    parseRuleSet();
  }
}
org.apache.batik.css.parserScannergetType

Javadoc

The current lexical unit type like defined in LexicalUnits.

Popular methods of Scanner

  • <init>
    Creates a new Scanner object.
  • clearBuffer
    Clears the buffer.
  • close
    Closes the underlying stream used by the scanner.
  • dotNumber
    Scans the decimal part of a number.
  • endGap
    Returns the end gap of the current lexical unit.
  • escape
    Scans an escape sequence, if one.
  • getColumn
    Returns the current column.
  • getLine
    Returns the current line.
  • getStringValue
    Returns the string representation of the current lexical unit.
  • isEqualIgnoreCase
    Compares the given int with the given character, ignoring case.
  • next
    Returns the next token.
  • nextChar
    Sets the value of the current char to the next character or -1 if the end of stream has been reached
  • next,
  • nextChar,
  • nextToken,
  • number,
  • numberUnit,
  • scanAtRule,
  • string1,
  • string2

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • String (java.lang)
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JLabel (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now