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

Classes

enum  InstType
 
enum  SourceType
 

Public Member Functions

boolean isEmpty ()
 
int size ()
 
String toString ()
 
boolean equals (Object rhs)
 

Protected Member Functions

 Features (@NonNull SourceType sourceType, @NonNull String className, int lineNo)
 

Protected Attributes

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<>()
 

Constructor & Destructor Documentation

◆ Features()

ppt4j.feature.Features.Features ( @NonNull SourceType sourceType,
@NonNull String className,
int lineNo )
protected

Member Function Documentation

◆ equals()

boolean ppt4j.feature.Features.equals ( Object rhs)

Checks if this Features object is equal to another object.

Parameters
rhsthe object to compare this Features object to
Returns
true if the objects are equal, false otherwise

◆ isEmpty()

boolean ppt4j.feature.Features.isEmpty ( )

Checks if all the collections (Constants, MethodInvocations, FieldAccesses, ObjCreations, Instructions, and Misc) are empty.

Returns
true if all collections are empty, false otherwise

◆ size()

int ppt4j.feature.Features.size ( )

This method calculates the total size of various components including Constants, MethodInvocations, FieldAccesses, ObjCreations, Instructions, and Misc. It then returns the sum of all of these sizes.

◆ toString()

String ppt4j.feature.Features.toString ( )

Returns a string representation of the object, including the sets of Constants, Method Invocations, Field Accesses, Object Creations, Instructions, and Misc. Each set is formatted using StringUtils.printSet method and concatenated together in the final string.

Reimplemented in ppt4j.feature.bytecode.BytecodeFeatures, and ppt4j.feature.java.JavaFeatures.

Member Data Documentation

◆ className

String ppt4j.feature.Features.className
protected

◆ Constants

final Set<Object> ppt4j.feature.Features.Constants = new HashSet<>()
protected

◆ FieldAccesses

final Set<String> ppt4j.feature.Features.FieldAccesses = new HashSet<>()
protected

◆ Instructions

final Set<InstType> ppt4j.feature.Features.Instructions = new HashSet<>()
protected

◆ lineNo

int ppt4j.feature.Features.lineNo
protected

◆ MethodInvocations

final Set<String> ppt4j.feature.Features.MethodInvocations = new HashSet<>()
protected

◆ Misc

final Set<String> ppt4j.feature.Features.Misc = new HashSet<>()
protected

◆ ObjCreations

final Set<String> ppt4j.feature.Features.ObjCreations = new HashSet<>()
protected

◆ sourceType

final SourceType ppt4j.feature.Features.sourceType
protected

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