Class PDA
- java.lang.Object
-
- org.pgpainless.decryption_verification.syntax_check.PDA
-
public class PDA extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PDA()Default constructor which initializes the PDA to work with theOpenPgpMessageSyntax.PDA(Syntax syntax, State initialState, StackSymbol... initialStack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertValid()StategetState()Return the current state of the PDA.booleanisValid()Return true, if the PDA is in a valid state (the OpenPGP message is valid).voidnext(InputSymbol input)StackSymbolpeekStack()java.lang.StringtoString()
-
-
-
Constructor Detail
-
PDA
public PDA()
Default constructor which initializes the PDA to work with theOpenPgpMessageSyntax.
-
PDA
public PDA(@Nonnull Syntax syntax, @Nonnull State initialState, @Nonnull StackSymbol... initialStack)
-
-
Method Detail
-
next
public void next(InputSymbol input) throws MalformedOpenPgpMessageException
- Throws:
MalformedOpenPgpMessageException
-
getState
public State getState()
Return the current state of the PDA.- Returns:
- state
-
peekStack
public StackSymbol peekStack()
-
isValid
public boolean isValid()
Return true, if the PDA is in a valid state (the OpenPGP message is valid).- Returns:
- true if valid, false otherwise
-
assertValid
public void assertValid() throws MalformedOpenPgpMessageException- Throws:
MalformedOpenPgpMessageException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-