org.richfaces.cdk.templatecompiler.builder.model
Class JavaMethod

java.lang.Object
  extended by org.richfaces.cdk.templatecompiler.builder.model.JavaLanguageElement
      extended by org.richfaces.cdk.templatecompiler.builder.model.JavaMethod
All Implemented Interfaces:
RequireImports
Direct Known Subclasses:
HelperJavaMethod, JavaConstructor, RendererUtilsMethod

public class JavaMethod
extends JavaLanguageElement

Author:
Maksim Kaszynski

Field Summary
 
Fields inherited from interface org.richfaces.cdk.templatecompiler.builder.model.RequireImports
IMPORTS_TRANSFORM
 
Constructor Summary
JavaMethod(java.lang.String name)
           
JavaMethod(java.lang.String name, Argument... arguments)
           
JavaMethod(java.lang.String name, ELType returnType, Argument... arguments)
           
 
Method Summary
 java.util.List<Argument> getArguments()
           
 java.util.List<ELType> getExceptions()
           
 JavaStatement getMethodBody()
           
 java.lang.Iterable<JavaImport> getRequiredImports()
           
 ELType getReturnType()
           
 void setMethodBody(JavaStatement methodBody)
           
 
Methods inherited from class org.richfaces.cdk.templatecompiler.builder.model.JavaLanguageElement
addAnnotation, addComment, addModifier, getAnnotations, getComments, getModifiers, getName, isHidden, setHidden, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaMethod

public JavaMethod(java.lang.String name)

JavaMethod

public JavaMethod(java.lang.String name,
                  Argument... arguments)

JavaMethod

public JavaMethod(java.lang.String name,
                  ELType returnType,
                  Argument... arguments)
Method Detail

getExceptions

public java.util.List<ELType> getExceptions()

getArguments

public java.util.List<Argument> getArguments()

getMethodBody

public JavaStatement getMethodBody()

getReturnType

public ELType getReturnType()

setMethodBody

public void setMethodBody(JavaStatement methodBody)

getRequiredImports

public java.lang.Iterable<JavaImport> getRequiredImports()
Specified by:
getRequiredImports in interface RequireImports
Overrides:
getRequiredImports in class JavaLanguageElement


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.