Package org.codehaus.janino.util
Interface ClassFile.ElementValue
-
- All Known Implementing Classes:
ClassFile.Annotation
,ClassFile.ArrayElementValue
,ClassFile.BooleanElementValue
,ClassFile.ByteElementValue
,ClassFile.CharElementValue
,ClassFile.ClassElementValue
,ClassFile.ConstantElementValue
,ClassFile.DoubleElementValue
,ClassFile.EnumConstValue
,ClassFile.FloatElementValue
,ClassFile.IntElementValue
,ClassFile.LongElementValue
,ClassFile.ShortElementValue
,ClassFile.StringElementValue
- Enclosing class:
- ClassFile
public static interface ClassFile.ElementValue
Representation of the "element_value" structure (see JVMS8 4.7.16.1).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ClassFile.ElementValue.Visitor<R,EX extends java.lang.Throwable>
The visitor interface for the implementation of the "visitor" pattern.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <R,EX extends java.lang.Throwable>
Raccept(ClassFile.ElementValue.Visitor<R,EX> visitor)
Invokes the respective method of theClassFile.ElementValue.Visitor
.byte
getTag()
void
store(java.io.DataOutputStream dos)
Writes this element value in an element-value-type dependent way; see JVMS8 4.7.16.1.
-
-
-
Method Detail
-
getTag
byte getTag()
- Returns:
- The "tag" byte to use when storing this "value" in an "element_value" structure
-
store
void store(java.io.DataOutputStream dos) throws java.io.IOException
Writes this element value in an element-value-type dependent way; see JVMS8 4.7.16.1. The "tag" byte is snot part of this writing!- Throws:
java.io.IOException
-
accept
@Nullable <R,EX extends java.lang.Throwable> R accept(ClassFile.ElementValue.Visitor<R,EX> visitor) throws EX extends java.lang.Throwable
Invokes the respective method of theClassFile.ElementValue.Visitor
.- Throws:
EX extends java.lang.Throwable
-
-