Android Open Source - ascent Enclosing Class






From Project

Back to project page ascent.

License

The source code is released under:

Apache License

If you think the Android project ascent listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package net.jamesbaca.ascent.internal;
//from   w  w w  .ja va2s.co m
import javax.lang.model.element.TypeElement;

class EnclosingClass {

    private final String classPackage;
    private final String className;
    private final String targetClass;
    private final String parentEnclosingClass;
    private final TypeElement element;
    private final String enclosingClassName;
    private final String enclosingClassPackage;

    EnclosingClass(String classPackage, String className, String targetClass,
                   String parentEnclosingClass, TypeElement element, String enclosingClass, String enclosingClassPackage) {
        this.classPackage = classPackage;
        this.className = className;
        this.targetClass = targetClass;
        this.parentEnclosingClass = parentEnclosingClass;
        this.element = element;
        this.enclosingClassName = enclosingClass;
        this.enclosingClassPackage = enclosingClassPackage;
    }

    public String getClassPackage() {
        return classPackage;
    }

    public String getClassName() {
        return className;
    }

    public String getTargetClass() {
        return targetClass;
    }

    public String getParentEnclosingClass() {
        return parentEnclosingClass;
    }

    public TypeElement getElement() {
        return element;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        EnclosingClass that = (EnclosingClass) o;

        if (!className.equals(that.className)) return false;
        if (!classPackage.equals(that.classPackage)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = classPackage.hashCode();
        result = 31 * result + className.hashCode();
        return result;
    }

    public String getEnclosingClassName(){
        return enclosingClassName;
    }

    public String getEnclosingClassPackage(){
        return  enclosingClassPackage;
    }
}




Java Source Code List

net.jamesbaca.ascent.Ascent.java
net.jamesbaca.ascent.FontHelper.java
net.jamesbaca.ascent.Font.java
net.jamesbaca.ascent.InjectedAscent.java
net.jamesbaca.ascent.demo.ApplicationTest.java
net.jamesbaca.ascent.demo.MainActivity.java
net.jamesbaca.ascent.internal.AnnotatedField.java
net.jamesbaca.ascent.internal.AnnotationsConverter.java
net.jamesbaca.ascent.internal.EnclosingClass.java
net.jamesbaca.ascent.internal.FontClassWriter.java
net.jamesbaca.ascent.internal.FontProcessor.java
net.jamesbaca.ascent.internal.WriterFactory.java
net.jamesbaca.ascent.mymodule.app.ApplicationTest.java
net.jamesbaca.ascent.mymodule.app.DemoApplicationModule.java
net.jamesbaca.ascent.mymodule.app.DemoApplication.java
net.jamesbaca.ascent.mymodule.app.MainActivity.java