Beispiel #1
0
 public static MetadataJavaClass ToMetadata(this JavaClass javaClass)
 {
     return(new MetadataJavaClass
     {
         AccessFlags = (JavaAccessFlags)javaClass.Flags,
         ClassName = javaClass.FullClassName,
         AllSuperClasses = javaClass.SuperClasses.Select(c => c.FullClassName).ToArray(),
         Interfaces = javaClass.Interfaces.Select(c => c.FullClassName).ToArray(),
         AllInterfaces = javaClass.Interfaces.Select(c => c.FullClassName).ToArray(),
         Methods = javaClass.Methods.Select(m => m.ToMetadata()).ToArray(),
         Fields = javaClass.Fields.Select(f => f.ToMetadata()).ToArray()
     });
 }
Beispiel #2
0
 protected bool Equals(JavaClass other)
 {
     return(FullClassName == other.FullClassName);
 }