站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

AntProjectCookie.ParseStatus (Ant) - NetBeans API Javadoc (Current Development Version)

org.apache.tools.ant.module/3 3.27.0 2

org.apache.tools.ant.module.api
Interface AntProjectCookie.ParseStatus

All Superinterfaces:
AntProjectCookie, Node.Cookie
Enclosing interface:
AntProjectCookie

public static interface AntProjectCookie.ParseStatus
extends AntProjectCookie

Extended cookie permitting queries of parse status. If only the basic cookie is available, you cannot determine if a project is already parsed or not, and methods which require it to be parsed for them to return may block until a parse is complete.

Since:
2.10

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.tools.ant.module.api.AntProjectCookie
AntProjectCookie.ParseStatus
 
Method Summary
 boolean isParsed()
          Check whether the project is currently parsed.
 
Methods inherited from interface org.apache.tools.ant.module.api.AntProjectCookie
addChangeListener, getDocument, getFile, getFileObject, getParseException, getProjectElement, removeChangeListener
 

Method Detail

isParsed

boolean isParsed()
Check whether the project is currently parsed. Note that "parsed in error" is still considered parsed.

If not parsed, then if and when it does later become parsed, a change event should be fired. A project might become unparsed after being parsed, due to e.g. garbage collection; this need not fire any event.

If the project is currently parsed, the methods AntProjectCookie.getDocument(), AntProjectCookie.getProjectElement(), and AntProjectCookie.getParseException() should not block.

Returns:
true if this project is currently parsed

org.apache.tools.ant.module/3 3.27.0 2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.