ppt4j 1.0
 
Loading...
Searching...
No Matches
ppt4j.feature.bytecode.BytecodeFeatures Class Reference
Inheritance diagram for ppt4j.feature.bytecode.BytecodeFeatures:
ppt4j.feature.Features

Public Member Functions

String toString ()
 
- Public Member Functions inherited from ppt4j.feature.Features
boolean isEmpty ()
 
int size ()
 
boolean equals (Object rhs)
 

Static Public Member Functions

static BytecodeFeatures merge (@NonNull BytecodeFeatures f1, @NonNull BytecodeFeatures f2)
 
static BytecodeFeatures empty ()
 

Additional Inherited Members

- Protected Member Functions inherited from ppt4j.feature.Features
 Features (@NonNull SourceType sourceType, @NonNull String className, int lineNo)
 
- Protected Attributes inherited from ppt4j.feature.Features
final SourceType sourceType
 
String className
 
int lineNo
 
final Set< Object > Constants = new HashSet<>()
 
final Set< String > MethodInvocations = new HashSet<>()
 
final Set< String > FieldAccesses = new HashSet<>()
 
final Set< String > ObjCreations = new HashSet<>()
 
final Set< InstTypeInstructions = new HashSet<>()
 
final Set< String > Misc = new HashSet<>()
 

Member Function Documentation

◆ empty()

static BytecodeFeatures ppt4j.feature.bytecode.BytecodeFeatures.empty ( )
static

Creates and returns a new instance of BytecodeFeatures with no features set.

Returns
a new instance of BytecodeFeatures with no features set

◆ merge()

static BytecodeFeatures ppt4j.feature.bytecode.BytecodeFeatures.merge ( @NonNull BytecodeFeatures f1,
@NonNull BytecodeFeatures f2 )
static

Merges two sets of BytecodeFeatures by combining their constants, method invocations, field accesses, object creations, instructions, and miscellaneous features into a single BytecodeFeatures object.

Parameters
f1the first set of BytecodeFeatures
f2the second set of BytecodeFeatures
Returns
a new BytecodeFeatures object containing the merged features from f1 and f2

◆ toString()

String ppt4j.feature.bytecode.BytecodeFeatures.toString ( )

Returns a string representation of the object. The string includes the index, source line number, and all instructions in the instance.

Returns
a string representation of the object

Reimplemented from ppt4j.feature.Features.


The documentation for this class was generated from the following file: