Search in sources :

Example 1 with AccessFlags

use of es.gob.jmulticard.asn1.der.pkcs15.AccessFlags in project atlas by alibaba.

the class ClassDefinition method writeAccessFlags.

private void writeAccessFlags(IndentingWriter writer) throws IOException {
    for (AccessFlags accessFlag : AccessFlags.getAccessFlagsForClass(classDef.getAccessFlags())) {
        writer.write(accessFlag.toString());
        writer.write(' ');
    }
}
Also used : AccessFlags(org.jf.dexlib2.AccessFlags)

Example 2 with AccessFlags

use of es.gob.jmulticard.asn1.der.pkcs15.AccessFlags in project atlas by alibaba.

the class FieldDefinition method writeAccessFlags.

private static void writeAccessFlags(IndentingWriter writer, int accessFlags) throws IOException {
    for (AccessFlags accessFlag : AccessFlags.getAccessFlagsForField(accessFlags)) {
        writer.write(accessFlag.toString());
        writer.write(' ');
    }
}
Also used : AccessFlags(org.jf.dexlib2.AccessFlags)

Example 3 with AccessFlags

use of es.gob.jmulticard.asn1.der.pkcs15.AccessFlags in project smali by JesusFreke.

the class SmaliModifierList method getAccessFlags.

public int getAccessFlags() {
    SmaliModifierListStub stub = getStub();
    if (stub != null) {
        return stub.getAccessFlags();
    }
    int flags = 0;
    for (PsiElement accessSpec : findChildrenByType(SmaliTokens.ACCESS_SPEC)) {
        AccessFlags flag = AccessFlags.getAccessFlag(accessSpec.getText());
        if (flag != null) {
            flags |= flag.getValue();
        }
    }
    return flags;
}
Also used : SmaliModifierListStub(org.jf.smalidea.psi.stub.SmaliModifierListStub) StubBasedPsiElement(com.intellij.psi.StubBasedPsiElement) PsiElement(com.intellij.psi.PsiElement) AccessFlags(org.jf.dexlib2.AccessFlags)

Example 4 with AccessFlags

use of es.gob.jmulticard.asn1.der.pkcs15.AccessFlags in project smali by JesusFreke.

the class FieldDefinition method writeAccessFlags.

private static void writeAccessFlags(IndentingWriter writer, int accessFlags) throws IOException {
    for (AccessFlags accessFlag : AccessFlags.getAccessFlagsForField(accessFlags)) {
        writer.write(accessFlag.toString());
        writer.write(' ');
    }
}
Also used : AccessFlags(org.jf.dexlib2.AccessFlags)

Example 5 with AccessFlags

use of es.gob.jmulticard.asn1.der.pkcs15.AccessFlags in project smali by JesusFreke.

the class MethodDefinition method writeAccessFlags.

private static void writeAccessFlags(IndentingWriter writer, int accessFlags) throws IOException {
    for (AccessFlags accessFlag : AccessFlags.getAccessFlagsForMethod(accessFlags)) {
        writer.write(accessFlag.toString());
        writer.write(' ');
    }
}
Also used : AccessFlags(org.jf.dexlib2.AccessFlags)

Aggregations

AccessFlags (org.jf.dexlib2.AccessFlags)7 PsiElement (com.intellij.psi.PsiElement)1 StubBasedPsiElement (com.intellij.psi.StubBasedPsiElement)1 Asn1Exception (es.gob.jmulticard.asn1.Asn1Exception)1 BitString (es.gob.jmulticard.asn1.der.BitString)1 AccessFlags (es.gob.jmulticard.asn1.der.pkcs15.AccessFlags)1 SmaliModifierListStub (org.jf.smalidea.psi.stub.SmaliModifierListStub)1 Test (org.junit.Test)1