Java Doc for ParseClass.java in » EJB-Server-resin-3.1.5 » ecmascript » com » caucho » es » parser » 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
»
EJB Server resin 3.1.5
»
ecmascript
»
com.caucho.es.parser
Source Cross Reference
Class Diagram
Java Document (Java Doc)
java.lang
.Object
com.caucho.es.parser
.ParseClass
ParseClass
class ParseClass
(Code)
Inner Class :static class Location
Constructor Summary
ParseClass
(
String
srcFilename,
String
name)
Creates a new parse class.
Method Summary
void
addFunction
(
Function
function)
void
addImport
(
String
importName)
void
addJavaImport
(
String
importName)
Adds a Java class/package import to the list.
void
addVariable
(
ESId
id,
Variable
var)
Sets a new class variable.
int
getCallDepth
()
Function
getFunction
(
ESId
name)
String
getMangledLiteral
(
ESBase
value)
Path
getScriptPath
()
Variable
getVariable
(
ESId
id)
Gets a class variable.
boolean
hasFunction
(
ArrayList
functions,
ESId
var)
ParseClass
newClass
(
ESId
id)
Creates a child subclasses of this class.
Function
newFunction
(
Function
oldFun,
ESId
id, boolean isClass)
void
popCall
(int n)
void
popDepth
()
void
print
(boolean b)
void
print
(int i)
void
print
(char c)
void
print
(
String
s)
void
print
(
Object
o)
void
printGetProperty
()
void
printHex
(int i)
void
printId
(
ESId
id)
void
printLineMap
()
Prints the mapping between java lines and the original *.js lines.
void
printLiteral
(
ESBase
obj)
void
printPropNames
()
void
printSetProperty
()
void
printSpaces
()
void
printString
(
String
s)
Escapes the string so the Java compiler can properly understand it.
void
println
()
void
println
(
String
s)
void
println
(
Object
o)
void
pushCall
()
void
pushDepth
()
void
setFunction
(
Function
function)
void
setGlobal
(
Function
global)
void
setLine
(
String
filename, int line)
void
setParser
(
Parser
parser)
void
setProto
(
ESId
proto)
void
setSourcePath
(Path sourcePath)
Sets the source path for searching import classes.
void
setWriteStream
(WriteStream os)
void
writeClassContents
()
Writes the contents of the class.
void
writeCode
(WriteStream os)
void
writeExecute
()
void
writeExport
()
void
writeInit
()
void
writeLastModified
()
void
writeMap
()
Writes the method map.
void
writeStaticInit
()
void
writeVarDecl
(
Variable
var, boolean init)
void
writeWrapperInit
(
String
name)
Constructor Detail
ParseClass
ParseClass(
String
srcFilename,
String
name)
(Code)
Creates a new parse class.
Parameters:
srcFilename - the name of the source (*.js)
Parameters:
name - the classname.
Method Detail
addFunction
void addFunction(
Function
function)
(Code)
addImport
void addImport(
String
importName)
(Code)
addJavaImport
void addJavaImport(
String
importName)
(Code)
Adds a Java class/package import to the list.
addVariable
void addVariable(
ESId
id,
Variable
var)
(Code)
Sets a new class variable.
getCallDepth
int getCallDepth()
(Code)
getFunction
Function
getFunction(
ESId
name)
(Code)
getMangledLiteral
String
getMangledLiteral(
ESBase
value)
(Code)
getScriptPath
Path getScriptPath()
(Code)
Gets the script search path
getVariable
Variable
getVariable(
ESId
id)
(Code)
Gets a class variable.
hasFunction
boolean hasFunction(
ArrayList
functions,
ESId
var)
(Code)
newClass
ParseClass
newClass(
ESId
id)
(Code)
Creates a child subclasses of this class.
Parameters:
id - the new class name.
newFunction
Function
newFunction(
Function
oldFun,
ESId
id, boolean isClass)
(Code)
popCall
void popCall(int n)
(Code)
popDepth
void popDepth()
(Code)
print
void print(boolean b) throws
IOException
(Code)
print
void print(int i) throws
IOException
(Code)
print
void print(char c) throws
IOException
(Code)
print
void print(
String
s) throws
IOException
(Code)
print
void print(
Object
o) throws
IOException
(Code)
printGetProperty
void printGetProperty() throws
IOException
(Code)
printHex
void printHex(int i) throws
IOException
(Code)
printId
void printId(
ESId
id) throws
IOException
(Code)
printLineMap
void printLineMap() throws
IOException
(Code)
Prints the mapping between java lines and the original *.js lines.
printLiteral
void printLiteral(
ESBase
obj) throws
IOException
(Code)
printPropNames
void printPropNames() throws
IOException
(Code)
printSetProperty
void printSetProperty() throws
IOException
(Code)
printSpaces
void printSpaces() throws
IOException
(Code)
printString
void printString(
String
s) throws
IOException
(Code)
Escapes the string so the Java compiler can properly understand it.
println
void println() throws
IOException
(Code)
println
void println(
String
s) throws
IOException
(Code)
println
void println(
Object
o) throws
IOException
(Code)
pushCall
void pushCall()
(Code)
pushDepth
void pushDepth()
(Code)
setFunction
void setFunction(
Function
function)
(Code)
setGlobal
void setGlobal(
Function
global)
(Code)
setLine
void setLine(
String
filename, int line)
(Code)
setParser
void setParser(
Parser
parser)
(Code)
setProto
void setProto(
ESId
proto)
(Code)
setSourcePath
void setSourcePath(Path sourcePath)
(Code)
Sets the source path for searching import classes.
setWriteStream
void setWriteStream(WriteStream os)
(Code)
writeClassContents
void writeClassContents() throws
IOException
(Code)
Writes the contents of the class. Actually generates two classes. One is a straight Java class, the other is the wrapper.
writeCode
void writeCode(WriteStream os) throws
IOException
(Code)
writeExecute
void writeExecute() throws
IOException
(Code)
writeExport
void writeExport() throws
IOException
(Code)
writeInit
void writeInit() throws
IOException
(Code)
writeLastModified
void writeLastModified() throws
IOException
(Code)
writeMap
void writeMap() throws
IOException
(Code)
Writes the method map.
writeStaticInit
void writeStaticInit() throws
IOException
(Code)
writeVarDecl
void writeVarDecl(
Variable
var, boolean init) throws
IOException
(Code)
writeWrapperInit
void writeWrapperInit(
String
name) throws
IOException
(Code)
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.