play.classloading
Class ApplicationClasses.ApplicationClass

java.lang.Object
  extended by play.classloading.ApplicationClasses.ApplicationClass
Enclosing class:
ApplicationClasses

public static class ApplicationClasses.ApplicationClass
extends java.lang.Object

Represent a application class


Field Summary
 byte[] enhancedByteCode
          The enhanced byteCode
 byte[] javaByteCode
          The compiled byteCode
 java.lang.Class<?> javaClass
          The in JVM loaded class
 VirtualFile javaFile
          A reference to the java source file
 java.lang.Package javaPackage
          The in JVM loaded package
 java.lang.String javaSource
          The Java source
 java.lang.String name
          The fully qualified class name
 int sigChecksum
          Signatures checksum
 java.lang.Long timestamp
          Last time than this class was compiled
 
Constructor Summary
ApplicationClasses.ApplicationClass()
           
ApplicationClasses.ApplicationClass(java.lang.String name)
           
 
Method Summary
 byte[] compile()
          Compile the class from Java source
 void compiled(byte[] code)
          Call back when a class is compiled.
 byte[] enhance()
          Enhance this class
 java.lang.String getPackage()
           
 boolean isClass()
           
 boolean isDefinable()
          Is this class already compiled but not defined ?
 void refresh()
          Need to refresh this class !
 java.lang.String toString()
           
 void uncompile()
          Unload the class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public java.lang.String name
The fully qualified class name


javaFile

public VirtualFile javaFile
A reference to the java source file


javaSource

public java.lang.String javaSource
The Java source


javaByteCode

public byte[] javaByteCode
The compiled byteCode


enhancedByteCode

public byte[] enhancedByteCode
The enhanced byteCode


javaClass

public java.lang.Class<?> javaClass
The in JVM loaded class


javaPackage

public java.lang.Package javaPackage
The in JVM loaded package


timestamp

public java.lang.Long timestamp
Last time than this class was compiled


sigChecksum

public int sigChecksum
Signatures checksum

Constructor Detail

ApplicationClasses.ApplicationClass

public ApplicationClasses.ApplicationClass()

ApplicationClasses.ApplicationClass

public ApplicationClasses.ApplicationClass(java.lang.String name)
Method Detail

refresh

public void refresh()
Need to refresh this class !


enhance

public byte[] enhance()
Enhance this class

Returns:
the enhanced byteCode

isDefinable

public boolean isDefinable()
Is this class already compiled but not defined ?

Returns:
if the class is compiled but not defined

isClass

public boolean isClass()

getPackage

public java.lang.String getPackage()

compile

public byte[] compile()
Compile the class from Java source

Returns:
the bytes that comprise the class file

uncompile

public void uncompile()
Unload the class


compiled

public void compiled(byte[] code)
Call back when a class is compiled.

Parameters:
code - The bytecode.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly