org.glassfish.hk2.classmodel.reflect
Class Parser
java.lang.Object
org.glassfish.hk2.classmodel.reflect.Parser
- All Implemented Interfaces:
- java.io.Closeable
public class Parser
- extends java.lang.Object
- implements java.io.Closeable
Parse jar files or directories and create the model for any classes found.
- Author:
- Jerome Dochez
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_WAIT_SYSPROP
public static final java.lang.String DEFAULT_WAIT_SYSPROP
- See Also:
- Constant Field Values
Parser
public Parser(ParsingContext context)
awaitTermination
public java.lang.Exception[] awaitTermination()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
awaitTermination
public java.lang.Exception[] awaitTermination(int timeOut,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
close
public void close()
- Specified by:
close in interface java.io.Closeable
parse
public void parse(java.io.File source,
java.lang.Runnable doneHook)
throws java.io.IOException
- Throws:
java.io.IOException
parse
public java.util.concurrent.Future<Parser.Result> parse(ArchiveAdapter source,
java.lang.Runnable doneHook)
throws java.io.IOException
- Parse the archive adapter entries and run the runnable hook on completion.
- Parameters:
source - the archive adapter to parsedoneHook - the runnable hook to run after completion
- Returns:
- the future object to monitor the result of the parsing.
- Throws:
java.io.IOException - thrown by the source archive adapter when accessing entries
getContext
public ParsingContext getContext()
- Returns the context this parser instance was initialized with during
the call to
Parser(ParsingContext)
- Returns:
- the parsing context this parser uses to store the parsing
activities results.
Copyright © 2013 Oracle Corporation. All Rights Reserved.