类 LazyParser<T>

java.lang.Object
proguard.classfile.attribute.signature.parsing.LazyParser<T>
类型参数:
T - The return type of the parser.
所有已实现的接口:
Parser<T>

public final class LazyParser<T> extends Object implements Parser<T>
Lazily initialized parser. Used to avoid problems with recursive definitions of grammar.
  • 构造器详细资料

    • LazyParser

      public LazyParser()
  • 方法详细资料

    • setDelegate

      public void setDelegate(Parser<T> delegate)
      Configure with the parser that all calls will be forwarded to.
    • parse

      @Nullable public T parse(ParserContext context)
      从接口复制的说明: Parser
      The core of the parsing logic. The context argument specifies where in the input string we are currently parsing. The responsibility of this function is to do one of:
      • Consume a part of the input and return a non-null value.
      • Return null and keep the input context untouched. This can be achieved either by avoiding the calls to ParserContext.advance(int), or through the use of snapshotting (see ParserContext.snapshot()).
      指定者:
      parse 在接口中 Parser<T>
      参数:
      context - Context of the parser containing the parsed string and the position in that string.
      返回:
      Null-value if this parser did not match anything. Non-null if it matched.