Search in sources :

Example 6 with Signature

use of php.runtime.annotation.Reflection.Signature in project jphp by jphp-compiler.

the class WrapTextView method __construct.

@Signature
public void __construct(WrapActivity activity) {
    __wrappedObject = new TextView(activity);
    __wrappedObject.setId(idCounter.getAndIncrement());
}
Also used : TextView(android.widget.TextView) Signature(php.runtime.annotation.Reflection.Signature)

Example 7 with Signature

use of php.runtime.annotation.Reflection.Signature in project jphp by jphp-compiler.

the class PZipFile method getEntryContent.

@Signature
public byte[] getEntryContent(String name) throws IOException {
    ZipEntry entry = getWrappedObject().getEntry(name);
    if (entry == null) {
        return null;
    }
    InputStream stream = getWrappedObject().getInputStream(entry);
    return readFully(stream, -1, true);
}
Also used : DataInputStream(java.io.DataInputStream) InputStream(java.io.InputStream) ZipEntry(java.util.zip.ZipEntry) Signature(php.runtime.annotation.Reflection.Signature)

Example 8 with Signature

use of php.runtime.annotation.Reflection.Signature in project jphp by jphp-compiler.

the class PZipFile method getEntryNames.

@Signature
public List<String> getEntryNames() {
    List<String> result = new ArrayList<>();
    for (Enumeration entries = getWrappedObject().entries(); entries.hasMoreElements(); ) {
        // Get the entry name
        String zipEntryName = ((ZipEntry) entries.nextElement()).getName();
        result.add(zipEntryName);
    }
    return result;
}
Also used : Enumeration(java.util.Enumeration) ZipEntry(java.util.zip.ZipEntry) ArrayList(java.util.ArrayList) Signature(php.runtime.annotation.Reflection.Signature)

Example 9 with Signature

use of php.runtime.annotation.Reflection.Signature in project jphp by jphp-compiler.

the class WrapButton method __construct.

@Signature
public void __construct(WrapActivity activity) {
    __wrappedObject = new Button(activity);
    __wrappedObject.setId(idCounter.getAndIncrement());
}
Also used : Button(android.widget.Button) Signature(php.runtime.annotation.Reflection.Signature)

Example 10 with Signature

use of php.runtime.annotation.Reflection.Signature in project jphp by jphp-compiler.

the class WrapEditText method __construct.

@Signature
public void __construct(WrapActivity activity) {
    __wrappedObject = new EditText(activity);
    __wrappedObject.setId(idCounter.getAndIncrement());
}
Also used : EditText(android.widget.EditText) Signature(php.runtime.annotation.Reflection.Signature)

Aggregations

Signature (php.runtime.annotation.Reflection.Signature)30 ArrayMemory (php.runtime.memory.ArrayMemory)8 InputStream (java.io.InputStream)4 Memory (php.runtime.Memory)4 ForeachIterator (php.runtime.lang.ForeachIterator)4 StringMemory (php.runtime.memory.StringMemory)4 ZipEntry (java.util.zip.ZipEntry)2 DOMSource (javax.xml.transform.dom.DOMSource)2 StreamResult (javax.xml.transform.stream.StreamResult)2 Stream (php.runtime.ext.core.classes.stream.Stream)2 WrapTime (php.runtime.ext.core.classes.time.WrapTime)2 LongMemory (php.runtime.memory.LongMemory)2 Intent (android.content.Intent)1 Button (android.widget.Button)1 EditText (android.widget.EditText)1 ImageView (android.widget.ImageView)1 LinearLayout (android.widget.LinearLayout)1 TextView (android.widget.TextView)1 HikariConfig (com.zaxxer.hikari.HikariConfig)1 HikariDataSource (com.zaxxer.hikari.HikariDataSource)1