| java.lang.Object org.openlaszlo.sc.CommonGenerator org.openlaszlo.sc.JavascriptGenerator
All known Subclasses: org.openlaszlo.sc.JavascriptCompressor,
Inner Class :public static class JavascriptReference | |
Inner Class :abstract public static class MemberReference extends JavascriptReference | |
Inner Class :public static class VariableReference extends JavascriptReference | |
Inner Class :public static class PropertyReference extends MemberReference | |
Inner Class :public static class IndexReference extends MemberReference | |
Method Summary | |
SimpleNode | checkUndefinedFunction(SimpleNode node, JavascriptReference reference) | SimpleNode | checkUndefinedMethod(SimpleNode node, JavascriptReference reference, String methodName) | boolean | isExpressionType(SimpleNode node) | public SimpleNode | makeCheckedNode(SimpleNode node) | SimpleNode | meterFunctionEvent(SimpleNode node, String event, String name) | public String | newLabel(SimpleNode node) | String | newTemp() | String | newTemp(String prefix) | SimpleNode | noteCallSite(SimpleNode node) | String | report(String reportMethod, SimpleNode node, Object message) | String | report(String reportMethod, SimpleNode node, Object message, String extraArg) | protected void | setRuntime(String runtiem) | void | showStats(SimpleNode node) | public SimpleNode | translate(SimpleNode program) | SimpleNode | translateAbruptCompletion(SimpleNode node, String type, ASTIdentifier label) | SimpleNode | translateAndOrExpression(SimpleNode node, boolean isand, SimpleNode a, SimpleNode b) | SimpleNode | translateForInStatement(SimpleNode node, SimpleNode var, Instructions.Instruction varset, SimpleNode obj, SimpleNode body) | SimpleNode | translateForStatement(SimpleNode node, SimpleNode[] children) | SimpleNode | translateFunction(SimpleNode node, boolean useName, SimpleNode[] children) | public SimpleNode[] | translateFunctionCallParameters(SimpleNode node, boolean isReferenced, SimpleNode[] children) | SimpleNode[] | translateFunctionInternal(SimpleNode node, boolean useName, SimpleNode[] children) | SimpleNode | translateInclude(String userfname, String cpass) | SimpleNode | translateInternal(SimpleNode program, String cpass, boolean top) | SimpleNode | translateLiteralNode(SimpleNode node) | JavascriptReference | translateReference(SimpleNode node) | JavascriptReference | translateReference(SimpleNode node, int referenceCount) | SimpleNode | translateReferenceForCall(SimpleNode ast) | SimpleNode | translateReferenceForCall(SimpleNode ast, boolean checkDefined, SimpleNode node) | public void | unwindEnumeration(SimpleNode node) | public SimpleNode | visitArrayLiteral(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitAssignmentExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitBinaryExpressionSequence(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitCallExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitConditionalExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitDoWhileStatement(SimpleNode node, SimpleNode[] children) | public SimpleNode | visitEmptyExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitExpression(SimpleNode node) | public SimpleNode | visitExpression(SimpleNode node, boolean isReferenced) | public SimpleNode | visitExpressionList(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitForInStatement(SimpleNode node, SimpleNode[] children) | public SimpleNode | visitForStatement(SimpleNode node, SimpleNode[] children) | public SimpleNode | visitForVarStatement(SimpleNode node, SimpleNode[] children) | public SimpleNode | visitFunctionCallParameters(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitFunctionDeclaration(SimpleNode node, SimpleNode[] ast) | public SimpleNode | visitFunctionExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitIdentifier(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitIfStatement(SimpleNode node, SimpleNode[] children) | public SimpleNode | visitLiteral(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitNewExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitObjectLiteral(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitPostfixExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitPrefixExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitProgram(SimpleNode node, SimpleNode[] directives, String cpass) | public SimpleNode | visitProgram(SimpleNode node, SimpleNode[] directives, String cpass, boolean top) | public SimpleNode | visitPropertyIdentifierReference(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitPropertyValueReference(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitReturnStatement(SimpleNode node, SimpleNode[] children) | public SimpleNode | visitSuperCallExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitSwitchStatement(SimpleNode node, SimpleNode[] children) | public SimpleNode | visitThisReference(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitThrowStatement(SimpleNode node, SimpleNode[] children) | public SimpleNode | visitTryStatement(SimpleNode node, SimpleNode[] children) | public SimpleNode | visitUnaryExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children) | public SimpleNode | visitVariableDeclaration(SimpleNode node, SimpleNode[] children) | public SimpleNode | visitVariableStatement(SimpleNode node, SimpleNode[] children) | public SimpleNode | visitWhileStatement(SimpleNode node, SimpleNode[] children) | public SimpleNode | visitWithStatement(SimpleNode node, SimpleNode[] children) |
AssignOpTable | static LessHalfAssedHashMap AssignOpTable(Code) | | |
XfixInstrs | static LessHalfAssedHashMap XfixInstrs(Code) | | |
uncheckedProperties | public static Set uncheckedProperties(Code) | | |
translateReference | JavascriptReference translateReference(SimpleNode node)(Code) | | |
translateReference | JavascriptReference translateReference(SimpleNode node, int referenceCount)(Code) | | |
Methods inherited from org.openlaszlo.sc.CommonGenerator | protected Integer UUID()(Code)(Java Doc) public SimpleNode dispatchExpression(SimpleNode node, boolean isReferenced)(Code)(Java Doc) Boolean evaluateCompileTimeConditional(SimpleNode node)(Code)(Java Doc) String getCodeGenerationOptionsKey(List ignore)(Code)(Java Doc) public InstructionCollector getCollector()(Code)(Java Doc) public TranslationContext getContext()(Code)(Java Doc) public Compiler.OptionMap getOptions()(Code)(Java Doc) String includeFileToSourceString(File file, String userfname)(Code)(Java Doc) File includeNameToFile(String userfname)(Code)(Java Doc) boolean isExpressionType(SimpleNode node)(Code)(Java Doc) ParseResult parseFile(File file, String userfname, String source)(Code)(Java Doc) static SimpleNode parseFragment(String code)(Code)(Java Doc) public void setOptions(Compiler.OptionMap options)(Code)(Java Doc) abstract protected void setRuntime(String runtime)(Code)(Java Doc) abstract void showStats(SimpleNode node)(Code)(Java Doc) abstract SimpleNode translateAbruptCompletion(SimpleNode node, String type, ASTIdentifier label)(Code)(Java Doc) abstract SimpleNode translateAndOrExpression(SimpleNode node, boolean isand, SimpleNode a, SimpleNode b)(Code)(Java Doc) public void translateClassDirectivesBlock(SimpleNode[] dirs, String classnameString, List props, List classProps, List stmts)(Code)(Java Doc) abstract SimpleNode translateForInStatement(SimpleNode node, SimpleNode var, Instructions.Instruction varset, SimpleNode obj, SimpleNode body)(Code)(Java Doc) public SimpleNode translateSuperCallExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)(Java Doc) public SimpleNode visitAndExpressionSequence(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)(Java Doc) public SimpleNode visitBreakStatement(SimpleNode node, SimpleNode[] children)(Code)(Java Doc) public SimpleNode visitChildren(SimpleNode node)(Code)(Java Doc) public SimpleNode visitClassDefinition(SimpleNode node, SimpleNode[] children)(Code)(Java Doc) public SimpleNode visitContinueStatement(SimpleNode node, SimpleNode[] children)(Code)(Java Doc) public SimpleNode visitDirectiveBlock(SimpleNode node, SimpleNode[] children)(Code)(Java Doc) public SimpleNode visitForVarInStatement(SimpleNode node, SimpleNode[] children)(Code)(Java Doc) public SimpleNode visitIfDirective(SimpleNode node, SimpleNode[] children)(Code)(Java Doc) public SimpleNode visitLabeledStatement(SimpleNode node, SimpleNode[] children)(Code)(Java Doc) public SimpleNode visitModifiedDefinition(SimpleNode node, SimpleNode[] children)(Code)(Java Doc) public SimpleNode visitOrExpressionSequence(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)(Java Doc) public SimpleNode visitPragmaDirective(SimpleNode node, SimpleNode[] children)(Code)(Java Doc) public SimpleNode visitStatement(SimpleNode node)(Code)(Java Doc) public SimpleNode visitStatement(SimpleNode node, SimpleNode[] children)(Code)(Java Doc) public SimpleNode visitStatementList(SimpleNode node, SimpleNode[] stmts)(Code)(Java Doc) public SimpleNode visitVariableDeclarationList(SimpleNode node, SimpleNode[] children)(Code)(Java Doc) public SimpleNode visitVariableStatement(SimpleNode node, SimpleNode[] children)(Code)(Java Doc)
|
|
|