| Modifier and Type | Field and Description |
|---|---|
| public static final int | BRANCH_GOTO
indicates an unconditional goto |
| public static final int | BRANCH_IF
indicates a two-way branch |
| public static final int | BRANCH_MAX
maximum |
| public static final int | BRANCH_MIN
minimum |
| public static final int | BRANCH_NONE
indicates a non-branching op |
| public static final int | BRANCH_RETURN
indicates a function/method return |
| public static final int | BRANCH_SWITCH
indicates a switch-style branch |
| public static final int | BRANCH_THROW
indicates a throw-style branch (both always-throws and may-throw) |
| private final int | branchingness
the branchingness of this op; one of the |
| private final TypeList | exceptions
|
| private final boolean | isCallLike
whether this is a function/method call op or similar |
| private final String | nickname
|
| private final int | |
| private final Type | |
| private final TypeList | sources
|
| Access | Constructor and Description |
|---|---|
| public | Rop(int
the opcode; one of the constants in opcode, Type RegOpsnon-null; result type of this operation; Type#VOID for no-result operationsnon-null; types of all the sources of this operationnon-null; list of possible types thrown by this
operationthe branchingness of this op; one of the
branchingness, boolean BRANCH_* constantswhether the op is a function/method call or similar isCallLike, String null-ok; optional nickname (used for debugging)Constructs an instance. |
| public | Rop(int
the opcode; one of the constants in opcode, Type RegOpsnon-null; result type of this operation; Type#VOID for no-result operationsnon-null; types of all the sources of this operationnon-null; list of possible types thrown by this
operationthe branchingness of this op; one of the
branchingness, String BRANCH_* constantsnull-ok; optional nickname (used for debugging)Constructs an instance. |
| public | Rop(int
the opcode; one of the constants in opcode, Type RegOpsnon-null; result type of this operation; Type#VOID for no-result operationsnon-null; types of all the sources of this operationthe branchingness of this op; one of the
branchingness, String BRANCH_* constantsnull-ok; optional nickname (used for debugging)Constructs a no-exception instance. |
| public | Rop(int
the opcode; one of the constants in opcode, Type RegOpsnon-null; result type of this operation; Type#VOID for no-result operationsnon-null; types of all the sources of this operationnull-ok; optional nickname (used for debugging)Constructs a non-branching no-exception instance. |
| public | Rop(int
the opcode; one of the constants in opcode, Type RegOpsnon-null; result type of this operation; Type#VOID for no-result operationsnon-null; types of all the sources of this operationnon-null; list of possible types thrown by this
operationnull-ok; optional nickname (used for debugging)Constructs a non-empty exceptions instance. |
| public | Rop(int
the opcode; one of the constants in opcode, TypeList RegOpsnon-null; types of all the sources of this operationnon-null; list of possible types thrown by this
operationConstructs a non-nicknamed instance with non-empty exceptions, which
is always a call-like op (see |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | Returns: true iff this operation can possibly throwGets whether this operation can possibly throw an exception. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public int | |
| public TypeList | Returns: non-null; the list of exception typesGets the list of exception types that might be thrown. |
| public String | |
| public int | |
| public Type | |
| public TypeList | |
| public int | |
| public boolean | Returns: true iff this opcode is call-likeGets whether this opcode is a function/method call or similar. |
| public boolean | Returns: true if rop is commutativeGets whether this opcode is commutative (the order of its sources are unimportant) or not. |
| public String |
| BRANCH_GOTO | back to summary |
|---|---|
| public static final int BRANCH_GOTO indicates an unconditional goto | |
| BRANCH_IF | back to summary |
|---|---|
| public static final int BRANCH_IF indicates a two-way branch | |
| BRANCH_MAX | back to summary |
|---|---|
| public static final int BRANCH_MAX maximum | |
| BRANCH_MIN | back to summary |
|---|---|
| public static final int BRANCH_MIN minimum | |
| BRANCH_NONE | back to summary |
|---|---|
| public static final int BRANCH_NONE indicates a non-branching op | |
| BRANCH_RETURN | back to summary |
|---|---|
| public static final int BRANCH_RETURN indicates a function/method return | |
| BRANCH_SWITCH | back to summary |
|---|---|
| public static final int BRANCH_SWITCH indicates a switch-style branch | |
| BRANCH_THROW | back to summary |
|---|---|
| public static final int BRANCH_THROW indicates a throw-style branch (both always-throws and may-throw) | |
| branchingness | back to summary |
|---|---|
| private final int branchingness the branchingness of this op; one of the | |
| exceptions | back to summary |
|---|---|
| private final TypeList exceptions
| |
| isCallLike | back to summary |
|---|---|
| private final boolean isCallLike whether this is a function/method call op or similar | |
| nickname | back to summary |
|---|---|
| private final String nickname
| |
| opcode | back to summary |
|---|---|
| private final int opcode the opcode; one of the constants in | |
| result | back to summary |
|---|---|
| private final Type result
| |
| sources | back to summary |
|---|---|
| private final TypeList sources
| |
| Rop | back to summary |
|---|---|
| public Rop(int opcode, Type result, TypeList sources, TypeList exceptions, int branchingness, boolean isCallLike, String nickname) Constructs an instance. This method is private. Use one of the public constructors.
| |
| Rop | back to summary |
|---|---|
| public Rop(int opcode, Type result, TypeList sources, TypeList exceptions, int branchingness, String nickname) Constructs an instance. The constructed instance is never a
call-like op (see
| |
| Rop | back to summary |
|---|---|
| public Rop(int opcode, Type result, TypeList sources, int branchingness, String nickname) Constructs a no-exception instance. The constructed instance is never a
call-like op (see
| |
| Rop | back to summary |
|---|---|
| public Rop(int opcode, Type result, TypeList sources, String nickname) Constructs a non-branching no-exception instance. The
| |
| Rop | back to summary |
|---|---|
| public Rop(int opcode, Type result, TypeList sources, TypeList exceptions, String nickname) Constructs a non-empty exceptions instance. Its
| |
| Rop | back to summary |
|---|---|
| public Rop(int opcode, TypeList sources, TypeList exceptions) Constructs a non-nicknamed instance with non-empty exceptions, which
is always a call-like op (see | |
| canThrow | back to summary |
|---|---|
| public final boolean canThrow() Gets whether this operation can possibly throw an exception. This
is just a convenient wrapper for
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getBranchingness | back to summary |
|---|---|
| public int getBranchingness() Gets the branchingness of this instance.
| |
| getExceptions | back to summary |
|---|---|
| public TypeList getExceptions() Gets the list of exception types that might be thrown.
| |
| getNickname | back to summary |
|---|---|
| public String getNickname() Gets the nickname. If this instance has no nickname, this returns
the result of calling
| |
| getOpcode | back to summary |
|---|---|
| public int getOpcode() Gets the opcode.
| |
| getResult | back to summary |
|---|---|
| public Type getResult() Gets the result type. A return value of
| |
| getSources | back to summary |
|---|---|
| public TypeList getSources() Gets the source types.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isCallLike | back to summary |
|---|---|
| public boolean isCallLike() Gets whether this opcode is a function/method call or similar.
| |
| isCommutative | back to summary |
|---|---|
| public boolean isCommutative() Gets whether this opcode is commutative (the order of its sources are unimportant) or not. All commutative Rops have exactly two sources and have no branchiness.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |