Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.jasper.compiler
Class BeanGenerator

    java.lang.Object
      |
      +--org.apache.jasper.compiler.GeneratorBase
            |
            +--org.apache.jasper.compiler.BeanGenerator

All Implemented Interfaces:
  ClassDeclarationPhase, Generator, ServiceMethodPhase

public class BeanGenerator
extends org.apache.jasper.compiler.GeneratorBase
implements ServiceMethodPhase, ClassDeclarationPhase

Generate code for useBean.

Author:
  Mandar Raje, Danno Ferrin

Field Summary
`protected JspCompilationContext` | `ctxt`

Constructor Summary
`BeanGenerator(Mark start, org.xml.sax.Attributes attrs, BeanRepository beanInfo, boolean genSession, boolean isXml)`

Method Summary
`void` | `checkSyntax(ServletWriter writer, java.lang.Class phase)`
`void` | `generate(ServletWriter writer, java.lang.Class phase)`
`protected void` | `generateBeanCreate(ServletWriter writer, java.lang.String varname, java.lang.String clsname, java.lang.String beanName, java.lang.String type)`
`boolean` | `generateCoordinates(java.lang.Class phase)`
`void` | `generateMethod(ServletWriter writer, java.lang.Class phase)`
`java.lang.String` | `getAttribute(java.lang.String name)`
`void` | `init(JspCompilationContext ctxt)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### ctxt

    protected JspCompilationContext ctxt

Constructor Detail

### BeanGenerator

    public BeanGenerator(Mark start,
                         org.xml.sax.Attributes attrs,
                         BeanRepository beanInfo,
                         boolean genSession,
                         boolean isXml)

Method Detail

### generate

    public void generate(ServletWriter writer,
                         java.lang.Class phase)
                  throws JasperException

### checkSyntax

    public void checkSyntax(ServletWriter writer,
                            java.lang.Class phase)
                     throws JasperException

### generateMethod

    public void generateMethod(ServletWriter writer,
                               java.lang.Class phase)
                        throws JasperException

### generateBeanCreate

    protected void generateBeanCreate(ServletWriter writer,
                                      java.lang.String varname,
                                      java.lang.String clsname,
                                      java.lang.String beanName,
                                      java.lang.String type)

### getAttribute

    public java.lang.String getAttribute(java.lang.String name)

### init

    public void init(JspCompilationContext ctxt)
              throws JasperException

  Specified by:
    `init` in interface `Generator`

### generateCoordinates

    public boolean generateCoordinates(java.lang.Class phase)

  Specified by:
    `generateCoordinates` in interface `Generator`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000 Apache Software Foundation. All Rights Reserved.