本文整理汇总了Java中org.antlr.runtime.tree.TreeRuleReturnScope类的典型用法代码示例。如果您正苦于以下问题:Java TreeRuleReturnScope类的具体用法?Java TreeRuleReturnScope怎么用?Java TreeRuleReturnScope使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TreeRuleReturnScope类属于org.antlr.runtime.tree包,在下文中一共展示了TreeRuleReturnScope类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: insn_format21c_type
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final void insn_format21c_type() throws RecognitionException {
CommonTree INSTRUCTION_FORMAT21c_TYPE123=null;
CommonTree REGISTER124=null;
TreeRuleReturnScope nonvoid_type_descriptor125 =null;
try {
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:842:3: ( ^( I_STATEMENT_FORMAT21c_TYPE INSTRUCTION_FORMAT21c_TYPE REGISTER nonvoid_type_descriptor ) )
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:843:5: ^( I_STATEMENT_FORMAT21c_TYPE INSTRUCTION_FORMAT21c_TYPE REGISTER nonvoid_type_descriptor )
{
match(input,I_STATEMENT_FORMAT21c_TYPE,FOLLOW_I_STATEMENT_FORMAT21c_TYPE_in_insn_format21c_type2289);
match(input, Token.DOWN, null);
INSTRUCTION_FORMAT21c_TYPE123=(CommonTree)match(input,INSTRUCTION_FORMAT21c_TYPE,FOLLOW_INSTRUCTION_FORMAT21c_TYPE_in_insn_format21c_type2291);
REGISTER124=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format21c_type2293);
pushFollow(FOLLOW_nonvoid_type_descriptor_in_insn_format21c_type2295);
nonvoid_type_descriptor125=nonvoid_type_descriptor();
state._fsp--;
match(input, Token.UP, null);
Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT21c_TYPE123!=null?INSTRUCTION_FORMAT21c_TYPE123.getText():null));
short regA = parseRegister_byte((REGISTER124!=null?REGISTER124.getText():null));
method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction21c(opcode, regA,
dexBuilder.internTypeReference((nonvoid_type_descriptor125!=null?((smaliTreeWalker.nonvoid_type_descriptor_return)nonvoid_type_descriptor125).type:null))));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:38,代码来源:smaliTreeWalker.java
示例2: insn_format22c_type
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final void insn_format22c_type() throws RecognitionException {
CommonTree registerA=null;
CommonTree registerB=null;
CommonTree INSTRUCTION_FORMAT22c_TYPE141=null;
TreeRuleReturnScope nonvoid_type_descriptor142 =null;
try {
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:927:3: ( ^( I_STATEMENT_FORMAT22c_TYPE INSTRUCTION_FORMAT22c_TYPE registerA= REGISTER registerB= REGISTER nonvoid_type_descriptor ) )
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:928:5: ^( I_STATEMENT_FORMAT22c_TYPE INSTRUCTION_FORMAT22c_TYPE registerA= REGISTER registerB= REGISTER nonvoid_type_descriptor )
{
match(input,I_STATEMENT_FORMAT22c_TYPE,FOLLOW_I_STATEMENT_FORMAT22c_TYPE_in_insn_format22c_type2512);
match(input, Token.DOWN, null);
INSTRUCTION_FORMAT22c_TYPE141=(CommonTree)match(input,INSTRUCTION_FORMAT22c_TYPE,FOLLOW_INSTRUCTION_FORMAT22c_TYPE_in_insn_format22c_type2514);
registerA=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format22c_type2518);
registerB=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format22c_type2522);
pushFollow(FOLLOW_nonvoid_type_descriptor_in_insn_format22c_type2524);
nonvoid_type_descriptor142=nonvoid_type_descriptor();
state._fsp--;
match(input, Token.UP, null);
Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT22c_TYPE141!=null?INSTRUCTION_FORMAT22c_TYPE141.getText():null));
byte regA = parseRegister_nibble((registerA!=null?registerA.getText():null));
byte regB = parseRegister_nibble((registerB!=null?registerB.getText():null));
method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction22c(opcode, regA, regB,
dexBuilder.internTypeReference((nonvoid_type_descriptor142!=null?((smaliTreeWalker.nonvoid_type_descriptor_return)nonvoid_type_descriptor142).type:null))));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:41,代码来源:smaliTreeWalker.java
示例3: insn_format21c_type
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final void insn_format21c_type() throws RecognitionException {
CommonTree INSTRUCTION_FORMAT21c_TYPE125=null;
CommonTree REGISTER126=null;
TreeRuleReturnScope nonvoid_type_descriptor127 =null;
try {
// smaliTreeWalker.g:874:3: ( ^( I_STATEMENT_FORMAT21c_TYPE INSTRUCTION_FORMAT21c_TYPE REGISTER nonvoid_type_descriptor ) )
// smaliTreeWalker.g:875:5: ^( I_STATEMENT_FORMAT21c_TYPE INSTRUCTION_FORMAT21c_TYPE REGISTER nonvoid_type_descriptor )
{
match(input,I_STATEMENT_FORMAT21c_TYPE,FOLLOW_I_STATEMENT_FORMAT21c_TYPE_in_insn_format21c_type2358);
match(input, Token.DOWN, null);
INSTRUCTION_FORMAT21c_TYPE125=(CommonTree)match(input,INSTRUCTION_FORMAT21c_TYPE,FOLLOW_INSTRUCTION_FORMAT21c_TYPE_in_insn_format21c_type2360);
REGISTER126=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format21c_type2362);
pushFollow(FOLLOW_nonvoid_type_descriptor_in_insn_format21c_type2364);
nonvoid_type_descriptor127=nonvoid_type_descriptor();
state._fsp--;
match(input, Token.UP, null);
Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT21c_TYPE125!=null?INSTRUCTION_FORMAT21c_TYPE125.getText():null));
short regA = parseRegister_byte((REGISTER126!=null?REGISTER126.getText():null));
method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction21c(opcode, regA,
dexBuilder.internTypeReference((nonvoid_type_descriptor127!=null?((smaliTreeWalker.nonvoid_type_descriptor_return)nonvoid_type_descriptor127).type:null))));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
开发者ID:CvvT,项目名称:AppTroy,代码行数:38,代码来源:smaliTreeWalker.java
示例4: insn_format22c_type
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final void insn_format22c_type() throws RecognitionException {
CommonTree registerA=null;
CommonTree registerB=null;
CommonTree INSTRUCTION_FORMAT22c_TYPE149=null;
TreeRuleReturnScope nonvoid_type_descriptor150 =null;
try {
// smaliTreeWalker.g:983:3: ( ^( I_STATEMENT_FORMAT22c_TYPE INSTRUCTION_FORMAT22c_TYPE registerA= REGISTER registerB= REGISTER nonvoid_type_descriptor ) )
// smaliTreeWalker.g:984:5: ^( I_STATEMENT_FORMAT22c_TYPE INSTRUCTION_FORMAT22c_TYPE registerA= REGISTER registerB= REGISTER nonvoid_type_descriptor )
{
match(input,I_STATEMENT_FORMAT22c_TYPE,FOLLOW_I_STATEMENT_FORMAT22c_TYPE_in_insn_format22c_type2639);
match(input, Token.DOWN, null);
INSTRUCTION_FORMAT22c_TYPE149=(CommonTree)match(input,INSTRUCTION_FORMAT22c_TYPE,FOLLOW_INSTRUCTION_FORMAT22c_TYPE_in_insn_format22c_type2641);
registerA=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format22c_type2645);
registerB=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format22c_type2649);
pushFollow(FOLLOW_nonvoid_type_descriptor_in_insn_format22c_type2651);
nonvoid_type_descriptor150=nonvoid_type_descriptor();
state._fsp--;
match(input, Token.UP, null);
Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT22c_TYPE149!=null?INSTRUCTION_FORMAT22c_TYPE149.getText():null));
byte regA = parseRegister_nibble((registerA!=null?registerA.getText():null));
byte regB = parseRegister_nibble((registerB!=null?registerB.getText():null));
method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction22c(opcode, regA, regB,
dexBuilder.internTypeReference((nonvoid_type_descriptor150!=null?((smaliTreeWalker.nonvoid_type_descriptor_return)nonvoid_type_descriptor150).type:null))));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
开发者ID:CvvT,项目名称:AppTroy,代码行数:41,代码来源:smaliTreeWalker.java
示例5: insn_format21c_type
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final void insn_format21c_type() throws RecognitionException {
CommonTree INSTRUCTION_FORMAT21c_TYPE123=null;
CommonTree REGISTER124=null;
TreeRuleReturnScope nonvoid_type_descriptor125 =null;
try {
// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:842:3: ( ^( I_STATEMENT_FORMAT21c_TYPE INSTRUCTION_FORMAT21c_TYPE REGISTER nonvoid_type_descriptor ) )
// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:843:5: ^( I_STATEMENT_FORMAT21c_TYPE INSTRUCTION_FORMAT21c_TYPE REGISTER nonvoid_type_descriptor )
{
match(input,I_STATEMENT_FORMAT21c_TYPE,FOLLOW_I_STATEMENT_FORMAT21c_TYPE_in_insn_format21c_type2289);
match(input, Token.DOWN, null);
INSTRUCTION_FORMAT21c_TYPE123=(CommonTree)match(input,INSTRUCTION_FORMAT21c_TYPE,FOLLOW_INSTRUCTION_FORMAT21c_TYPE_in_insn_format21c_type2291);
REGISTER124=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format21c_type2293);
pushFollow(FOLLOW_nonvoid_type_descriptor_in_insn_format21c_type2295);
nonvoid_type_descriptor125=nonvoid_type_descriptor();
state._fsp--;
match(input, Token.UP, null);
Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT21c_TYPE123!=null?INSTRUCTION_FORMAT21c_TYPE123.getText():null));
short regA = parseRegister_byte((REGISTER124!=null?REGISTER124.getText():null));
method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction21c(opcode, regA,
dexBuilder.internTypeReference((nonvoid_type_descriptor125!=null?((smaliTreeWalker.nonvoid_type_descriptor_return)nonvoid_type_descriptor125).type:null))));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
开发者ID:Sukelluskello,项目名称:VectorAttackScanner,代码行数:38,代码来源:smaliTreeWalker.java
示例6: insn_format22c_type
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final void insn_format22c_type() throws RecognitionException {
CommonTree registerA=null;
CommonTree registerB=null;
CommonTree INSTRUCTION_FORMAT22c_TYPE141=null;
TreeRuleReturnScope nonvoid_type_descriptor142 =null;
try {
// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:927:3: ( ^( I_STATEMENT_FORMAT22c_TYPE INSTRUCTION_FORMAT22c_TYPE registerA= REGISTER registerB= REGISTER nonvoid_type_descriptor ) )
// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:928:5: ^( I_STATEMENT_FORMAT22c_TYPE INSTRUCTION_FORMAT22c_TYPE registerA= REGISTER registerB= REGISTER nonvoid_type_descriptor )
{
match(input,I_STATEMENT_FORMAT22c_TYPE,FOLLOW_I_STATEMENT_FORMAT22c_TYPE_in_insn_format22c_type2512);
match(input, Token.DOWN, null);
INSTRUCTION_FORMAT22c_TYPE141=(CommonTree)match(input,INSTRUCTION_FORMAT22c_TYPE,FOLLOW_INSTRUCTION_FORMAT22c_TYPE_in_insn_format22c_type2514);
registerA=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format22c_type2518);
registerB=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format22c_type2522);
pushFollow(FOLLOW_nonvoid_type_descriptor_in_insn_format22c_type2524);
nonvoid_type_descriptor142=nonvoid_type_descriptor();
state._fsp--;
match(input, Token.UP, null);
Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT22c_TYPE141!=null?INSTRUCTION_FORMAT22c_TYPE141.getText():null));
byte regA = parseRegister_nibble((registerA!=null?registerA.getText():null));
byte regB = parseRegister_nibble((registerB!=null?registerB.getText():null));
method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction22c(opcode, regA, regB,
dexBuilder.internTypeReference((nonvoid_type_descriptor142!=null?((smaliTreeWalker.nonvoid_type_descriptor_return)nonvoid_type_descriptor142).type:null))));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
开发者ID:Sukelluskello,项目名称:VectorAttackScanner,代码行数:41,代码来源:smaliTreeWalker.java
示例7: smali_file
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final ClassDef smali_file() throws RecognitionException {
ClassDef classDef = null;
TreeRuleReturnScope header1 =null;
Set<Annotation> annotations2 =null;
List<BuilderField> fields3 =null;
List<BuilderMethod> methods4 =null;
try {
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:160:3: ( ^( I_CLASS_DEF header methods fields annotations ) )
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:160:5: ^( I_CLASS_DEF header methods fields annotations )
{
match(input,I_CLASS_DEF,FOLLOW_I_CLASS_DEF_in_smali_file52);
match(input, Token.DOWN, null);
pushFollow(FOLLOW_header_in_smali_file54);
header1=header();
state._fsp--;
pushFollow(FOLLOW_methods_in_smali_file56);
methods4=methods();
state._fsp--;
pushFollow(FOLLOW_fields_in_smali_file58);
fields3=fields();
state._fsp--;
pushFollow(FOLLOW_annotations_in_smali_file60);
annotations2=annotations();
state._fsp--;
match(input, Token.UP, null);
classDef = dexBuilder.internClassDef((header1!=null?((smaliTreeWalker.header_return)header1).classType:null), (header1!=null?((smaliTreeWalker.header_return)header1).accessFlags:0), (header1!=null?((smaliTreeWalker.header_return)header1).superType:null),
(header1!=null?((smaliTreeWalker.header_return)header1).implementsList:null), (header1!=null?((smaliTreeWalker.header_return)header1).sourceSpec:null), annotations2, fields3, methods4);
}
}
catch (Exception ex) {
if (verboseErrors) {
ex.printStackTrace(System.err);
}
reportError(new SemanticException(input, ex));
}
finally {
// do for sure before leaving
}
return classDef;
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:55,代码来源:smaliTreeWalker.java
示例8: header
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final smaliTreeWalker.header_return header() throws RecognitionException {
smaliTreeWalker.header_return retval = new smaliTreeWalker.header_return();
retval.start = input.LT(1);
TreeRuleReturnScope class_spec5 =null;
String super_spec6 =null;
List<String> implements_list7 =null;
String source_spec8 =null;
try {
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:174:3: ( class_spec ( super_spec )? implements_list source_spec )
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:174:3: class_spec ( super_spec )? implements_list source_spec
{
pushFollow(FOLLOW_class_spec_in_header85);
class_spec5=class_spec();
state._fsp--;
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:174:14: ( super_spec )?
int alt1=2;
int LA1_0 = input.LA(1);
if ( (LA1_0==I_SUPER) ) {
alt1=1;
}
switch (alt1) {
case 1 :
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:174:14: super_spec
{
pushFollow(FOLLOW_super_spec_in_header87);
super_spec6=super_spec();
state._fsp--;
}
break;
}
pushFollow(FOLLOW_implements_list_in_header90);
implements_list7=implements_list();
state._fsp--;
pushFollow(FOLLOW_source_spec_in_header92);
source_spec8=source_spec();
state._fsp--;
classType = (class_spec5!=null?((smaliTreeWalker.class_spec_return)class_spec5).type:null);
retval.classType = classType;
retval.accessFlags = (class_spec5!=null?((smaliTreeWalker.class_spec_return)class_spec5).accessFlags:0);
retval.superType = super_spec6;
retval.implementsList = implements_list7;
retval.sourceSpec = source_spec8;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return retval;
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:65,代码来源:smaliTreeWalker.java
示例9: method_name_and_prototype
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final smaliTreeWalker.method_name_and_prototype_return method_name_and_prototype() throws RecognitionException {
smaliTreeWalker.method_name_and_prototype_return retval = new smaliTreeWalker.method_name_and_prototype_return();
retval.start = input.LT(1);
CommonTree SIMPLE_NAME74=null;
TreeRuleReturnScope method_prototype75 =null;
try {
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:475:3: ( SIMPLE_NAME method_prototype )
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:475:5: SIMPLE_NAME method_prototype
{
SIMPLE_NAME74=(CommonTree)match(input,SIMPLE_NAME,FOLLOW_SIMPLE_NAME_in_method_name_and_prototype1120);
pushFollow(FOLLOW_method_prototype_in_method_name_and_prototype1122);
method_prototype75=method_prototype();
state._fsp--;
retval.name = (SIMPLE_NAME74!=null?SIMPLE_NAME74.getText():null);
retval.parameters = Lists.newArrayList();
int paramRegister = 0;
for (String type: (method_prototype75!=null?((smaliTreeWalker.method_prototype_return)method_prototype75).parameters:null)) {
retval.parameters.add(new SmaliMethodParameter(paramRegister++, type));
char c = type.charAt(0);
if (c == 'D' || c == 'J') {
paramRegister++;
}
}
retval.returnType = (method_prototype75!=null?((smaliTreeWalker.method_prototype_return)method_prototype75).returnType:null);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return retval;
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:43,代码来源:smaliTreeWalker.java
示例10: field_type_list
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final List<String> field_type_list() throws RecognitionException {
List<String> types = null;
TreeRuleReturnScope nonvoid_type_descriptor76 =null;
types = Lists.newArrayList();
try {
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:496:3: ( ( nonvoid_type_descriptor )* )
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:496:5: ( nonvoid_type_descriptor )*
{
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:496:5: ( nonvoid_type_descriptor )*
loop17:
while (true) {
int alt17=2;
int LA17_0 = input.LA(1);
if ( (LA17_0==ARRAY_DESCRIPTOR||LA17_0==CLASS_DESCRIPTOR||LA17_0==PRIMITIVE_TYPE) ) {
alt17=1;
}
switch (alt17) {
case 1 :
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:497:7: nonvoid_type_descriptor
{
pushFollow(FOLLOW_nonvoid_type_descriptor_in_field_type_list1156);
nonvoid_type_descriptor76=nonvoid_type_descriptor();
state._fsp--;
types.add((nonvoid_type_descriptor76!=null?((smaliTreeWalker.nonvoid_type_descriptor_return)nonvoid_type_descriptor76).type:null));
}
break;
default :
break loop17;
}
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return types;
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:54,代码来源:smaliTreeWalker.java
示例11: catch_directive
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final void catch_directive() throws RecognitionException {
Label from =null;
Label to =null;
Label using =null;
TreeRuleReturnScope nonvoid_type_descriptor85 =null;
try {
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:537:3: ( ^( I_CATCH nonvoid_type_descriptor from= label_ref to= label_ref using= label_ref ) )
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:537:5: ^( I_CATCH nonvoid_type_descriptor from= label_ref to= label_ref using= label_ref )
{
match(input,I_CATCH,FOLLOW_I_CATCH_in_catch_directive1332);
match(input, Token.DOWN, null);
pushFollow(FOLLOW_nonvoid_type_descriptor_in_catch_directive1334);
nonvoid_type_descriptor85=nonvoid_type_descriptor();
state._fsp--;
pushFollow(FOLLOW_label_ref_in_catch_directive1338);
from=label_ref();
state._fsp--;
pushFollow(FOLLOW_label_ref_in_catch_directive1342);
to=label_ref();
state._fsp--;
pushFollow(FOLLOW_label_ref_in_catch_directive1346);
using=label_ref();
state._fsp--;
match(input, Token.UP, null);
method_stack.peek().methodBuilder.addCatch(dexBuilder.internTypeReference((nonvoid_type_descriptor85!=null?((smaliTreeWalker.nonvoid_type_descriptor_return)nonvoid_type_descriptor85).type:null)),
from, to, using);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:46,代码来源:smaliTreeWalker.java
示例12: insn_format35c_method
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final void insn_format35c_method() throws RecognitionException {
CommonTree INSTRUCTION_FORMAT35c_METHOD161=null;
TreeRuleReturnScope register_list162 =null;
ImmutableMethodReference fully_qualified_method163 =null;
try {
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1040:3: ( ^( I_STATEMENT_FORMAT35c_METHOD INSTRUCTION_FORMAT35c_METHOD register_list fully_qualified_method ) )
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1041:5: ^( I_STATEMENT_FORMAT35c_METHOD INSTRUCTION_FORMAT35c_METHOD register_list fully_qualified_method )
{
match(input,I_STATEMENT_FORMAT35c_METHOD,FOLLOW_I_STATEMENT_FORMAT35c_METHOD_in_insn_format35c_method2834);
match(input, Token.DOWN, null);
INSTRUCTION_FORMAT35c_METHOD161=(CommonTree)match(input,INSTRUCTION_FORMAT35c_METHOD,FOLLOW_INSTRUCTION_FORMAT35c_METHOD_in_insn_format35c_method2836);
pushFollow(FOLLOW_register_list_in_insn_format35c_method2838);
register_list162=register_list();
state._fsp--;
pushFollow(FOLLOW_fully_qualified_method_in_insn_format35c_method2840);
fully_qualified_method163=fully_qualified_method();
state._fsp--;
match(input, Token.UP, null);
Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT35c_METHOD161!=null?INSTRUCTION_FORMAT35c_METHOD161.getText():null));
//this depends on the fact that register_list returns a byte[5]
byte[] registers = (register_list162!=null?((smaliTreeWalker.register_list_return)register_list162).registers:null);
byte registerCount = (register_list162!=null?((smaliTreeWalker.register_list_return)register_list162).registerCount:0);
ImmutableMethodReference methodReference = fully_qualified_method163;
method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction35c(opcode, registerCount, registers[0], registers[1],
registers[2], registers[3], registers[4], dexBuilder.internMethodReference(methodReference)));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:46,代码来源:smaliTreeWalker.java
示例13: insn_format35c_type
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final void insn_format35c_type() throws RecognitionException {
CommonTree INSTRUCTION_FORMAT35c_TYPE164=null;
TreeRuleReturnScope register_list165 =null;
TreeRuleReturnScope nonvoid_type_descriptor166 =null;
try {
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1056:3: ( ^( I_STATEMENT_FORMAT35c_TYPE INSTRUCTION_FORMAT35c_TYPE register_list nonvoid_type_descriptor ) )
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1057:5: ^( I_STATEMENT_FORMAT35c_TYPE INSTRUCTION_FORMAT35c_TYPE register_list nonvoid_type_descriptor )
{
match(input,I_STATEMENT_FORMAT35c_TYPE,FOLLOW_I_STATEMENT_FORMAT35c_TYPE_in_insn_format35c_type2863);
match(input, Token.DOWN, null);
INSTRUCTION_FORMAT35c_TYPE164=(CommonTree)match(input,INSTRUCTION_FORMAT35c_TYPE,FOLLOW_INSTRUCTION_FORMAT35c_TYPE_in_insn_format35c_type2865);
pushFollow(FOLLOW_register_list_in_insn_format35c_type2867);
register_list165=register_list();
state._fsp--;
pushFollow(FOLLOW_nonvoid_type_descriptor_in_insn_format35c_type2869);
nonvoid_type_descriptor166=nonvoid_type_descriptor();
state._fsp--;
match(input, Token.UP, null);
Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT35c_TYPE164!=null?INSTRUCTION_FORMAT35c_TYPE164.getText():null));
//this depends on the fact that register_list returns a byte[5]
byte[] registers = (register_list165!=null?((smaliTreeWalker.register_list_return)register_list165).registers:null);
byte registerCount = (register_list165!=null?((smaliTreeWalker.register_list_return)register_list165).registerCount:0);
method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction35c(opcode, registerCount, registers[0], registers[1],
registers[2], registers[3], registers[4], dexBuilder.internTypeReference((nonvoid_type_descriptor166!=null?((smaliTreeWalker.nonvoid_type_descriptor_return)nonvoid_type_descriptor166).type:null))));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:44,代码来源:smaliTreeWalker.java
示例14: insn_format3rc_method
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final void insn_format3rc_method() throws RecognitionException {
CommonTree INSTRUCTION_FORMAT3rc_METHOD167=null;
TreeRuleReturnScope register_range168 =null;
ImmutableMethodReference fully_qualified_method169 =null;
try {
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1070:3: ( ^( I_STATEMENT_FORMAT3rc_METHOD INSTRUCTION_FORMAT3rc_METHOD register_range fully_qualified_method ) )
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1071:5: ^( I_STATEMENT_FORMAT3rc_METHOD INSTRUCTION_FORMAT3rc_METHOD register_range fully_qualified_method )
{
match(input,I_STATEMENT_FORMAT3rc_METHOD,FOLLOW_I_STATEMENT_FORMAT3rc_METHOD_in_insn_format3rc_method2892);
match(input, Token.DOWN, null);
INSTRUCTION_FORMAT3rc_METHOD167=(CommonTree)match(input,INSTRUCTION_FORMAT3rc_METHOD,FOLLOW_INSTRUCTION_FORMAT3rc_METHOD_in_insn_format3rc_method2894);
pushFollow(FOLLOW_register_range_in_insn_format3rc_method2896);
register_range168=register_range();
state._fsp--;
pushFollow(FOLLOW_fully_qualified_method_in_insn_format3rc_method2898);
fully_qualified_method169=fully_qualified_method();
state._fsp--;
match(input, Token.UP, null);
Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT3rc_METHOD167!=null?INSTRUCTION_FORMAT3rc_METHOD167.getText():null));
int startRegister = (register_range168!=null?((smaliTreeWalker.register_range_return)register_range168).startRegister:0);
int endRegister = (register_range168!=null?((smaliTreeWalker.register_range_return)register_range168).endRegister:0);
int registerCount = endRegister-startRegister+1;
ImmutableMethodReference methodReference = fully_qualified_method169;
method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction3rc(opcode, startRegister, registerCount,
dexBuilder.internMethodReference(methodReference)));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:46,代码来源:smaliTreeWalker.java
示例15: insn_format3rc_type
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final void insn_format3rc_type() throws RecognitionException {
CommonTree INSTRUCTION_FORMAT3rc_TYPE170=null;
TreeRuleReturnScope register_range171 =null;
TreeRuleReturnScope nonvoid_type_descriptor172 =null;
try {
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1086:3: ( ^( I_STATEMENT_FORMAT3rc_TYPE INSTRUCTION_FORMAT3rc_TYPE register_range nonvoid_type_descriptor ) )
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1087:5: ^( I_STATEMENT_FORMAT3rc_TYPE INSTRUCTION_FORMAT3rc_TYPE register_range nonvoid_type_descriptor )
{
match(input,I_STATEMENT_FORMAT3rc_TYPE,FOLLOW_I_STATEMENT_FORMAT3rc_TYPE_in_insn_format3rc_type2921);
match(input, Token.DOWN, null);
INSTRUCTION_FORMAT3rc_TYPE170=(CommonTree)match(input,INSTRUCTION_FORMAT3rc_TYPE,FOLLOW_INSTRUCTION_FORMAT3rc_TYPE_in_insn_format3rc_type2923);
pushFollow(FOLLOW_register_range_in_insn_format3rc_type2925);
register_range171=register_range();
state._fsp--;
pushFollow(FOLLOW_nonvoid_type_descriptor_in_insn_format3rc_type2927);
nonvoid_type_descriptor172=nonvoid_type_descriptor();
state._fsp--;
match(input, Token.UP, null);
Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT3rc_TYPE170!=null?INSTRUCTION_FORMAT3rc_TYPE170.getText():null));
int startRegister = (register_range171!=null?((smaliTreeWalker.register_range_return)register_range171).startRegister:0);
int endRegister = (register_range171!=null?((smaliTreeWalker.register_range_return)register_range171).endRegister:0);
int registerCount = endRegister-startRegister+1;
method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction3rc(opcode, startRegister, registerCount,
dexBuilder.internTypeReference((nonvoid_type_descriptor172!=null?((smaliTreeWalker.nonvoid_type_descriptor_return)nonvoid_type_descriptor172).type:null))));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:44,代码来源:smaliTreeWalker.java
示例16: type_descriptor
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final String type_descriptor() throws RecognitionException {
String type = null;
TreeRuleReturnScope nonvoid_type_descriptor181 =null;
try {
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1153:3: ( VOID_TYPE | nonvoid_type_descriptor )
int alt35=2;
int LA35_0 = input.LA(1);
if ( (LA35_0==VOID_TYPE) ) {
alt35=1;
}
else if ( (LA35_0==ARRAY_DESCRIPTOR||LA35_0==CLASS_DESCRIPTOR||LA35_0==PRIMITIVE_TYPE) ) {
alt35=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 35, 0, input);
throw nvae;
}
switch (alt35) {
case 1 :
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1153:5: VOID_TYPE
{
match(input,VOID_TYPE,FOLLOW_VOID_TYPE_in_type_descriptor3122);
type = "V";
}
break;
case 2 :
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1154:5: nonvoid_type_descriptor
{
pushFollow(FOLLOW_nonvoid_type_descriptor_in_type_descriptor3130);
nonvoid_type_descriptor181=nonvoid_type_descriptor();
state._fsp--;
type = (nonvoid_type_descriptor181!=null?((smaliTreeWalker.nonvoid_type_descriptor_return)nonvoid_type_descriptor181).type:null);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return type;
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:54,代码来源:smaliTreeWalker.java
示例17: smali_file
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final ClassDef smali_file() throws RecognitionException {
ClassDef classDef = null;
TreeRuleReturnScope header1 =null;
Set<Annotation> annotations2 =null;
List<BuilderField> fields3 =null;
List<BuilderMethod> methods4 =null;
try {
// smaliTreeWalker.g:160:3: ( ^( I_CLASS_DEF header methods fields annotations ) )
// smaliTreeWalker.g:160:5: ^( I_CLASS_DEF header methods fields annotations )
{
match(input,I_CLASS_DEF,FOLLOW_I_CLASS_DEF_in_smali_file52);
match(input, Token.DOWN, null);
pushFollow(FOLLOW_header_in_smali_file54);
header1=header();
state._fsp--;
pushFollow(FOLLOW_methods_in_smali_file56);
methods4=methods();
state._fsp--;
pushFollow(FOLLOW_fields_in_smali_file58);
fields3=fields();
state._fsp--;
pushFollow(FOLLOW_annotations_in_smali_file60);
annotations2=annotations();
state._fsp--;
match(input, Token.UP, null);
classDef = dexBuilder.internClassDef((header1!=null?((smaliTreeWalker.header_return)header1).classType:null), (header1!=null?((smaliTreeWalker.header_return)header1).accessFlags:0), (header1!=null?((smaliTreeWalker.header_return)header1).superType:null),
(header1!=null?((smaliTreeWalker.header_return)header1).implementsList:null), (header1!=null?((smaliTreeWalker.header_return)header1).sourceSpec:null), annotations2, fields3, methods4);
}
}
catch (Exception ex) {
if (verboseErrors) {
ex.printStackTrace(System.err);
}
reportError(new SemanticException(input, ex));
}
finally {
// do for sure before leaving
}
return classDef;
}
开发者ID:CvvT,项目名称:AppTroy,代码行数:55,代码来源:smaliTreeWalker.java
示例18: header
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final smaliTreeWalker.header_return header() throws RecognitionException {
smaliTreeWalker.header_return retval = new smaliTreeWalker.header_return();
retval.start = input.LT(1);
TreeRuleReturnScope class_spec5 =null;
String super_spec6 =null;
List<String> implements_list7 =null;
String source_spec8 =null;
try {
// smaliTreeWalker.g:174:3: ( class_spec ( super_spec )? implements_list source_spec )
// smaliTreeWalker.g:174:3: class_spec ( super_spec )? implements_list source_spec
{
pushFollow(FOLLOW_class_spec_in_header85);
class_spec5=class_spec();
state._fsp--;
// smaliTreeWalker.g:174:14: ( super_spec )?
int alt1=2;
int LA1_0 = input.LA(1);
if ( (LA1_0==I_SUPER) ) {
alt1=1;
}
switch (alt1) {
case 1 :
// smaliTreeWalker.g:174:14: super_spec
{
pushFollow(FOLLOW_super_spec_in_header87);
super_spec6=super_spec();
state._fsp--;
}
break;
}
pushFollow(FOLLOW_implements_list_in_header90);
implements_list7=implements_list();
state._fsp--;
pushFollow(FOLLOW_source_spec_in_header92);
source_spec8=source_spec();
state._fsp--;
classType = (class_spec5!=null?((smaliTreeWalker.class_spec_return)class_spec5).type:null);
retval.classType = classType;
retval.accessFlags = (class_spec5!=null?((smaliTreeWalker.class_spec_return)class_spec5).accessFlags:0);
retval.superType = super_spec6;
retval.implementsList = implements_list7;
retval.sourceSpec = source_spec8;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return retval;
}
开发者ID:CvvT,项目名称:AppTroy,代码行数:65,代码来源:smaliTreeWalker.java
示例19: method_name_and_prototype
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final smaliTreeWalker.method_name_and_prototype_return method_name_and_prototype() throws RecognitionException {
smaliTreeWalker.method_name_and_prototype_return retval = new smaliTreeWalker.method_name_and_prototype_return();
retval.start = input.LT(1);
CommonTree SIMPLE_NAME74=null;
TreeRuleReturnScope method_prototype75 =null;
try {
// smaliTreeWalker.g:475:3: ( SIMPLE_NAME method_prototype )
// smaliTreeWalker.g:475:5: SIMPLE_NAME method_prototype
{
SIMPLE_NAME74=(CommonTree)match(input,SIMPLE_NAME,FOLLOW_SIMPLE_NAME_in_method_name_and_prototype1120);
pushFollow(FOLLOW_method_prototype_in_method_name_and_prototype1122);
method_prototype75=method_prototype();
state._fsp--;
retval.name = (SIMPLE_NAME74!=null?SIMPLE_NAME74.getText():null);
retval.parameters = Lists.newArrayList();
int paramRegister = 0;
for (String type: (method_prototype75!=null?((smaliTreeWalker.method_prototype_return)method_prototype75).parameters:null)) {
retval.parameters.add(new SmaliMethodParameter(paramRegister++, type));
char c = type.charAt(0);
if (c == 'D' || c == 'J') {
paramRegister++;
}
}
retval.returnType = (method_prototype75!=null?((smaliTreeWalker.method_prototype_return)method_prototype75).returnType:null);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return retval;
}
开发者ID:CvvT,项目名称:AppTroy,代码行数:43,代码来源:smaliTreeWalker.java
示例20: method_type_list
import org.antlr.runtime.tree.TreeRuleReturnScope; //导入依赖的package包/类
public final List<String> method_type_list() throws RecognitionException {
List<String> types = null;
TreeRuleReturnScope nonvoid_type_descriptor76 =null;
types = Lists.newArrayList();
try {
// smaliTreeWalker.g:496:3: ( ( nonvoid_type_descriptor )* )
// smaliTreeWalker.g:496:5: ( nonvoid_type_descriptor )*
{
// smaliTreeWalker.g:496:5: ( nonvoid_type_descriptor )*
loop17:
while (true) {
int alt17=2;
int LA17_0 = input.LA(1);
if ( (LA17_0==ARRAY_DESCRIPTOR||LA17_0==CLASS_DESCRIPTOR||LA17_0==PRIMITIVE_TYPE) ) {
alt17=1;
}
switch (alt17) {
case 1 :
// smaliTreeWalker.g:497:7: nonvoid_type_descriptor
{
pushFollow(FOLLOW_
|
请发表评论