Class DialectRuntimeRegistry

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable

    public class DialectRuntimeRegistry
    extends java.lang.Object
    implements java.io.Externalizable
    See Also:
    Serialized Form
    • Constructor Detail

      • DialectRuntimeRegistry

        public DialectRuntimeRegistry()
    • Method Detail

      • writeExternal

        public void writeExternal​(java.io.ObjectOutput stream)
                           throws java.io.IOException
        Handles the write serialization of the PackageCompilationData. Patterns in Rules may reference generated data which cannot be serialized by default methods. The PackageCompilationData holds a reference to the generated bytecode. The generated bytecode must be restored before any Rules.
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput stream)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Handles the read serialization of the PackageCompilationData. Patterns in Rules may reference generated data which cannot be serialized by default methods. The PackageCompilationData holds a reference to the generated bytecode; which must be restored before any Rules. A custom ObjectInputStream, able to resolve classes against the bytecode, is used to restore the Rules.
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • onAdd

        public void onAdd​(java.lang.ClassLoader rootClassLoader)
      • onRemove

        public void onRemove()
      • setDialectData

        public void setDialectData​(java.lang.String name,
                                   DialectRuntimeData data)
      • merge

        public void merge​(DialectRuntimeRegistry newDatas,
                          java.lang.ClassLoader rootClassLoader,
                          boolean excludeClasses)
      • onBeforeExecute

        public void onBeforeExecute()
      • clear

        public void clear()
      • getLineMappings

        public LineMappings getLineMappings​(java.lang.String className)
      • getLineMappings

        public java.util.Map<java.lang.String,​LineMappings> getLineMappings()