Java Doc for EmbeddingContainer.java in  » IDE-Netbeans » lexer » org » netbeans » lib » lexer » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » lexer » org.netbeans.lib.lexer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.lib.lexer.EmbeddingContainer

EmbeddingContainer
final public class EmbeddingContainer (Code)
Embedding info contains information about all the embeddings for a particular token in a token list.
There can be one or more EmbeddedTokenList instances for each cotnained embedding.

There is an intent to not degrade performance significantly with each extra language embedding level so the token list maintains direct link to the root level.
author:
   Miloslav Metelka
version:
   1.00




Constructor Summary
 EmbeddingContainer(AbstractToken<T> token, TokenList rootTokenList)
    
 EmbeddingContainer(EmbeddingContainer<T> ec)
     Constructor used when a custom embedding gets removed.

Method Summary
public  voidaddEmbeddedTokenList(EmbeddedTokenList prevEtl, EmbeddedTokenList etl, boolean defaultEmbedding)
     Add a new embedded token list to this container.
public  intcachedModCount()
    
public  charcharAt(int tokenRelOffset)
    
public  voidcheckStatusUpdated()
     Check if this embedding container is up-to-date (updateStatusImpl() was called on it) which is useful for missing-update-status checks.
public static  booleancreateEmbedding(TokenList<T> tokenList, int index, Language<ET> embeddedLanguage, int startSkipLength, int endSkipLength, boolean joinSections)
     Create custom embedding.
Parameters:
  tokenList - non-null token list in which the token for which the embeddingshould be created resides.
Parameters:
  index - >=0 index of the token in the token list where the embeddingshould be created.
Parameters:
  embeddedLanguage - non-null embedded language.
Parameters:
  startSkipLength - >=0 number of characters in an initial part of the tokenfor which the language embedding is being create that should be excludedfrom the embedded section.
public  EmbeddedTokenListdefaultEmbeddedTokenList()
    
public static  EmbeddedTokenList<ET>embeddedTokenList(TokenList<T> tokenList, int index, Language<ET> embeddedLanguage)
     Get embedded token list.
Parameters:
  tokenList - non-null token list in which the token for which the embeddingshould be obtained resides.
Parameters:
  index - >=0 index of the token in the token list where the embeddingshould be obtained.
Parameters:
  language - whether only language embeddding of the particular languagewas requested.
public  EmbeddedTokenListfirstEmbeddedTokenList()
    
 voidinvalidateChildren()
    
public  booleanisRemoved()
     Check whether this embedding container is no longer present in the token hierarchy.
public  voidreinit(AbstractToken<T> token)
     Make this container serve a different token.
public  EmbeddedTokenListremoveEmbeddedTokenList(EmbeddedTokenList prevEtl, EmbeddedTokenList etl)
     Remove embedded token list from this container. Clear reference to next item in the removed token list.
Parameters:
  prevEtl - token list preceding the place of removal.Null means that the removed one is first in the chain.
Parameters:
  etl - non-null token list to be removed.
public static  booleanremoveEmbedding(TokenList<T> tokenList, int index, Language<ET> embeddedLanguage)
    
public  AbstractTokenrootToken()
    
public  TokenListrootTokenList()
    
public  introotTokenOffsetShift()
    
public  AbstractToken<T>token()
    
public  inttokenStartOffset()
    
public  booleanupdateStatus()
    
public  voidupdateStatusAndInvalidate()
    
public  AbstractTokenupdateStatusImpl()
     Update and return root token corresponding to this embedding container.


Constructor Detail
EmbeddingContainer
EmbeddingContainer(AbstractToken<T> token, TokenList rootTokenList)(Code)



EmbeddingContainer
EmbeddingContainer(EmbeddingContainer<T> ec)(Code)
Constructor used when a custom embedding gets removed. Such removal does not increase token hierarchy version (to not destroy existing token sequences) but need to invalidate token sequences over the removed embedded token list and all its children.
A new special embedding container gets created in such case that will carry null root token since begining and will have a special modCount so that the token sequences become invalid.
Parameters:
  ec - non-null existing embedding container.




Method Detail
addEmbeddedTokenList
public void addEmbeddedTokenList(EmbeddedTokenList prevEtl, EmbeddedTokenList etl, boolean defaultEmbedding)(Code)
Add a new embedded token list to this container.
Parameters:
  prevEtl - token list preceding the place of addition.Null means that the added one will be first in the chain.
Parameters:
  etl - non-null token list to be added.
Parameters:
  defaultEmbedding - whether the added etl is default embedding or not.



cachedModCount
public int cachedModCount()(Code)



charAt
public char charAt(int tokenRelOffset)(Code)



checkStatusUpdated
public void checkStatusUpdated()(Code)
Check if this embedding container is up-to-date (updateStatusImpl() was called on it) which is useful for missing-update-status checks.



createEmbedding
public static boolean createEmbedding(TokenList<T> tokenList, int index, Language<ET> embeddedLanguage, int startSkipLength, int endSkipLength, boolean joinSections)(Code)
Create custom embedding.
Parameters:
  tokenList - non-null token list in which the token for which the embeddingshould be created resides.
Parameters:
  index - >=0 index of the token in the token list where the embeddingshould be created.
Parameters:
  embeddedLanguage - non-null embedded language.
Parameters:
  startSkipLength - >=0 number of characters in an initial part of the tokenfor which the language embedding is being create that should be excludedfrom the embedded section. The excluded characters will not be lexedand there will be no tokens created for them.
Parameters:
  endSkipLength - >=0 number of characters at the end of the tokenfor which the language embedding is defined that should be excludedfrom the embedded section. The excluded characters will not be lexedand there will be no tokens created for them.



defaultEmbeddedTokenList
public EmbeddedTokenList defaultEmbeddedTokenList()(Code)



embeddedTokenList
public static EmbeddedTokenList<ET> embeddedTokenList(TokenList<T> tokenList, int index, Language<ET> embeddedLanguage)(Code)
Get embedded token list.
Parameters:
  tokenList - non-null token list in which the token for which the embeddingshould be obtained resides.
Parameters:
  index - >=0 index of the token in the token list where the embeddingshould be obtained.
Parameters:
  language - whether only language embeddding of the particular languagewas requested. It may be null if any embedding should be returned.



firstEmbeddedTokenList
public EmbeddedTokenList firstEmbeddedTokenList()(Code)



invalidateChildren
void invalidateChildren()(Code)



isRemoved
public boolean isRemoved()(Code)
Check whether this embedding container is no longer present in the token hierarchy.
This method should only be called after updateStatusImpl() was called (it updates rootToken variable).



reinit
public void reinit(AbstractToken<T> token)(Code)
Make this container serve a different token. The updateStatusImpl() should be called afterwards to update tokenStartOffset etc.



removeEmbeddedTokenList
public EmbeddedTokenList removeEmbeddedTokenList(EmbeddedTokenList prevEtl, EmbeddedTokenList etl)(Code)
Remove embedded token list from this container. Clear reference to next item in the removed token list.
Parameters:
  prevEtl - token list preceding the place of removal.Null means that the removed one is first in the chain.
Parameters:
  etl - non-null token list to be removed. next token list linked originally to etl.



removeEmbedding
public static boolean removeEmbedding(TokenList<T> tokenList, int index, Language<ET> embeddedLanguage)(Code)



rootToken
public AbstractToken rootToken()(Code)



rootTokenList
public TokenList rootTokenList()(Code)



rootTokenOffsetShift
public int rootTokenOffsetShift()(Code)



token
public AbstractToken<T> token()(Code)



tokenStartOffset
public int tokenStartOffset()(Code)



updateStatus
public boolean updateStatus()(Code)



updateStatusAndInvalidate
public void updateStatusAndInvalidate()(Code)



updateStatusImpl
public AbstractToken updateStatusImpl()(Code)
Update and return root token corresponding to this embedding container.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.