Class StructMember
- java.lang.Object
-
- org.jetbrains.java.decompiler.struct.StructMember
-
- Direct Known Subclasses:
StructClass,StructField,StructMethod
public abstract class StructMember extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected intaccessFlagsprotected java.util.Map<java.lang.String,StructGeneralAttribute>attributes
-
Constructor Summary
Constructors Modifier Constructor Description protectedStructMember(int accessFlags, java.util.Map<java.lang.String,StructGeneralAttribute> attributes)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetAccessFlags()<T extends StructGeneralAttribute>
TgetAttribute(StructGeneralAttribute.Key<T> attribute)protected abstract BytecodeVersiongetVersion()booleanhasAttribute(StructGeneralAttribute.Key<?> attribute)booleanhasModifier(int modifier)booleanisSynthetic()protected StructGeneralAttributereadAttribute(DataInputFullStream in, ConstantPool pool, java.lang.String name)static java.util.Map<java.lang.String,StructGeneralAttribute>readAttributes(DataInputFullStream in, ConstantPool pool, boolean readCode, BytecodeVersion version)static java.util.Map<java.lang.String,StructGeneralAttribute>readAttributes(DataInputFullStream in, ConstantPool pool, BytecodeVersion version)
-
-
-
Field Detail
-
accessFlags
protected int accessFlags
-
attributes
protected java.util.Map<java.lang.String,StructGeneralAttribute> attributes
-
-
Constructor Detail
-
StructMember
protected StructMember(int accessFlags, java.util.Map<java.lang.String,StructGeneralAttribute> attributes)
-
-
Method Detail
-
getAccessFlags
public int getAccessFlags()
-
getAttribute
public <T extends StructGeneralAttribute> T getAttribute(StructGeneralAttribute.Key<T> attribute)
-
hasAttribute
public boolean hasAttribute(StructGeneralAttribute.Key<?> attribute)
-
hasModifier
public boolean hasModifier(int modifier)
-
isSynthetic
public boolean isSynthetic()
-
readAttributes
public static java.util.Map<java.lang.String,StructGeneralAttribute> readAttributes(DataInputFullStream in, ConstantPool pool, BytecodeVersion version) throws java.io.IOException
- Throws:
java.io.IOException
-
readAttributes
public static java.util.Map<java.lang.String,StructGeneralAttribute> readAttributes(DataInputFullStream in, ConstantPool pool, boolean readCode, BytecodeVersion version) throws java.io.IOException
- Throws:
java.io.IOException
-
getVersion
protected abstract BytecodeVersion getVersion()
-
readAttribute
protected StructGeneralAttribute readAttribute(DataInputFullStream in, ConstantPool pool, java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
-