Package proguard.classfile
Class LibraryMember
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.LibraryMember
-
- All Implemented Interfaces:
java.io.Serializable
,Member
,Processable
- Direct Known Subclasses:
LibraryField
,LibraryMethod
public abstract class LibraryMember extends SimpleProcessable implements Member
Base representation of a field or method from aLibraryClass
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
descriptor
java.lang.String
name
int
u2accessFlags
-
Fields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LibraryMember()
Creates an uninitialized LibraryMember.protected
LibraryMember(int u2accessFlags, java.lang.String name, java.lang.String descriptor)
Creates an initialized LibraryMember.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
accept(Clazz clazz, MemberVisitor memberVisitor)
Accepts the given class visitor.abstract void
accept(LibraryClass libraryClass, MemberVisitor memberVisitor)
Accepts the given member info visitor.int
getAccessFlags()
Returns the access flags.java.lang.String
getDescriptor(Clazz clazz)
Returns the class member's descriptor.java.lang.String
getName(Clazz clazz)
Returns the class member name.-
Methods inherited from class proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface proguard.classfile.Member
referencedClassesAccept
-
Methods inherited from interface proguard.util.Processable
getProcessingFlags, getProcessingInfo, setProcessingFlags, setProcessingInfo
-
-
-
-
Method Detail
-
accept
public abstract void accept(LibraryClass libraryClass, MemberVisitor memberVisitor)
Accepts the given member info visitor.
-
getAccessFlags
public int getAccessFlags()
Description copied from interface:Member
Returns the access flags.- Specified by:
getAccessFlags
in interfaceMember
-
getName
public java.lang.String getName(Clazz clazz)
Description copied from interface:Member
Returns the class member name.
-
getDescriptor
public java.lang.String getDescriptor(Clazz clazz)
Description copied from interface:Member
Returns the class member's descriptor.- Specified by:
getDescriptor
in interfaceMember
-
accept
public void accept(Clazz clazz, MemberVisitor memberVisitor)
Description copied from interface:Member
Accepts the given class visitor.
-
-